Add a GitHub Actions workflow for Ubuntu and Windows

This commit is contained in:
Jack Grigg 2019-08-20 23:46:53 +01:00
parent 7b11d64cf9
commit f1b6e88f9f
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
1 changed files with 20 additions and 0 deletions

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

@ -0,0 +1,20 @@
name: Rust
on: [push]
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose --release --all
- name: Run tests
run: cargo test --verbose --release --all