Upgrade GitHub Actions for Node 24 compatibility (#3255) #7527
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| name: Continuous integration | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Remove cargo config (macOS ring crate fix) | |
| if: runner.os == 'macOS' | |
| run: rm -f .cargo/config.toml | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo check --workspace | |
| test: | |
| name: Test Suite | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| steps: | |
| - name: Free disk space (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo rm -rf /opt/hostedtoolcache | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| df -h | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Remove cargo config (macOS ring crate fix) | |
| if: runner.os == 'macOS' | |
| run: rm -f .cargo/config.toml | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install lld (Linux only) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y lld | |
| - name: Run tests (with lld on Linux) | |
| if: runner.os == 'Linux' | |
| env: | |
| RUSTFLAGS: "-C link-arg=-fuse-ld=lld" | |
| run: cargo test --workspace | |
| - name: Run tests (Windows & macOS) | |
| if: runner.os != 'Linux' | |
| run: cargo test --workspace | |
| fmt: | |
| name: Rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - run: cargo clippy --workspace --tests --examples --benches -- -D warnings |