forked from GitHub/bdwgc-rust
30 lines
681 B
YAML
30 lines
681 B
YAML
name: test
|
|
on:
|
|
- push
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: -- --check
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: -- -D warnings
|
|
- uses: actions-rs/audit-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- run: |
|
|
cd examples
|
|
./test.sh
|
|
- run: |
|
|
git clean -dfx
|
|
cargo build --no-default-features --features cmake
|