rename test case #1134
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 | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Install 64tass only on Linux (where it's easy and might be expected by legacy setups) | |
| - name: Install 64tass (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y 64tass | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Check Formatting | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cargo fmt -- --check | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Audit Dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| cargo install cargo-audit | |
| for i in 1 2 3; do | |
| cargo audit && break | |
| echo "Attempt $i failed, retrying in 10s..." | |
| sleep 10 | |
| done |