Add GitHub actions configuration

This commit is contained in:
Arthur Baars
2020-10-27 14:25:22 +01:00
parent 7555141246
commit 73a090501a

28
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, osx-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose