use action-rs Actions instead
@@ -10,13 +10,15 @@ env:
CARGO_TERM_COLOR: always
jobs:
- build:
-
+ build_and_test:
+ name: Rust project
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v2
- - name: Build
- run: cargo build --verbose
- - name: Run tests
- run: cargo test --verbose
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ - uses: actions-rs/cargo@v1
+ with:
+ command: build
+ args: --release --all-features
