build: github workflow

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-01-15 00:06:38 +03:00
parent e896047926
commit 4e8324c7b1
4 changed files with 167 additions and 1 deletions

44
.github/workflows/pr_main.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: Rust Main Branch Pull Request -> Build & Test
on:
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose