Create rust.yml

This commit is contained in:
Lokathor 2020-07-25 15:25:08 -06:00 committed by GitHub
parent bb2b95643e
commit 8a7d383ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,37 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_test_no_features:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.34.0, stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@v1
- name: Build
run: cargo build
- name: Test
run: cargo test
build_test_with_features:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.34.0, stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@v1
- name: Build
run: cargo build --all-features
- name: Test
run: cargo test --all-features