github actions (#1437)

This commit is contained in:
Austin Johnson 2020-11-10 10:29:09 -06:00 committed by GitHub
parent 6f67a70fb1
commit 3a473699eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

45
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
windows_stable:
runs-on: windows-latest
steps:
- name: Ninja Install
uses: crazy-max/ghaction-chocolatey@v1.3.1
with:
args: install ninja
- name: Python3 Install
uses: crazy-max/ghaction-chocolatey@v1.3.1
with:
args: install python3 --params "/InstallAllUsers"
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
linux_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
macos_stable:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose