refactoring: Change the way non-specified sandbox kind is handled #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: '-D warnings' | |
jobs: | |
test-stable: | |
name: Test x86_64-linux stable | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
# 64-bit target | |
- target: x86_64-unknown-linux-gnu | |
deps: sudo apt update && sudo apt install git bubblewrap | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: rustup target add ${{ matrix.target }} | |
- run: ${{ matrix.deps }} | |
- run: cargo test --profile ci --target ${{ matrix.target }} | |
- run: cargo build --profile ci --target ${{ matrix.target }} --no-default-features | |
test-nightly: | |
name: Test Nightly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
- run: sudo apt update && sudo apt install git bubblewrap | |
- run: cargo test --profile ci | |
# TODO: bench | |
# bench: | |
# name: Check that benchmarks compile | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/rust-toolchain@stable | |
# - name: Build default (host native) bench | |
# run: cargo build --benches | |
clippy: | |
name: Check that clippy is happy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- run: cargo clippy --target x86_64-unknown-linux-gnu | |
rustfmt: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
cackle: | |
name: Cackle check and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: cackle-rs/cackle-action@main | |
- run: cargo acl -n | |
- run: cargo acl -n test |