Create rust.yml

This commit is contained in:
Jakub Dorničák 2022-12-04 23:21:04 +01:00 committed by GitHub
parent 4b4aaa3ac1
commit d9ffa75da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Rust build 📦
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose