V0.6.2 #338
Workflow file for this run
This file contains hidden or 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: Rust (jacs crate) | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'jacs/**' | |
| - '.github/workflows/rust.yml' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'jacs/**' | |
| - '.github/workflows/rust.yml' | |
| workflow_dispatch: # Allows manual triggering | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test-jacs: # Renamed job for clarity | |
| name: Test jacs crate (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: '1.93' | |
| - name: Install cargo-audit and run audit | |
| if: runner.os == 'Linux' | |
| working-directory: jacs | |
| run: | | |
| cargo install cargo-audit | |
| cargo audit || true | |
| - name: Run jacs tests | |
| working-directory: jacs | |
| run: cargo test --verbose --features cli |