From 3e65e8f394eccd0def52e3e2a15900fb3facadde Mon Sep 17 00:00:00 2001 From: ADD-SP Date: Sun, 15 Feb 2026 07:19:31 +0000 Subject: [PATCH] chore(CI): enable macOS tests --- .github/workflows/rust.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9807b93..b5e8d72 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,7 +23,12 @@ concurrency: jobs: linter: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + name: Cargo fmt and clippy steps: @@ -32,23 +37,30 @@ jobs: run: cargo fmt --all -- --check tests: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + name: Cargo test and tarpaulin needs: linter steps: - uses: actions/checkout@v4 - - name: Install cargo-tarpaulin@${{ env.TARPAULIN_VERSION }} - run: cargo install cargo-tarpaulin@${{ env.TARPAULIN_VERSION }} --locked - - name: Build run: cargo build --verbose - + - name: Run tests run: cargo test --verbose + - name: Install cargo-tarpaulin@${{ env.TARPAULIN_VERSION }} + if: matrix.os == 'ubuntu-latest' + run: cargo install cargo-tarpaulin@${{ env.TARPAULIN_VERSION }} --locked + - name: Run tarpaulin + if: matrix.os == 'ubuntu-latest' run: cargo tarpaulin --verbose audit: