ops: github actions

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-01-08 04:20:24 +03:00
parent 576297d2bc
commit 95342c82c8
3 changed files with 166 additions and 0 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