diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 366b451..217e456 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -7,6 +7,22 @@ on: branches: [ "main" ] jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable] + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --examples --verbose + - name: Run tests + run: cargo test --examples --verbose + - name: Run check + run: cargo check --examples --verbose + check: name: Check runs-on: ${{ matrix.os }} @@ -24,14 +40,14 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - args: --workspace --examples + args: --examples test: - name: Test Suite + name: Test runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, macOS-latest, windows-latest] rust: [stable] steps: - uses: actions/checkout@v2 @@ -43,7 +59,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --workspace --examples + args: --examples fmt: name: Rustfmt @@ -75,4 +91,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: --workspace --tests --examples --all-targets --all-features -- -Dwarnings + args: --examples --all-targets --all-features -- -Dwarnings