chore(deps): update rust to v1.92.0 #840
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: | |
| merge_group: | |
| jobs: | |
| cargo-deny: | |
| name: Cargo Deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 | |
| - run: mise run cargo-deny | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Install nightly@nightly toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: Format | |
| run: cargo +nightly fmt --all -- --check | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Install stable@stable toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| with: | |
| components: clippy | |
| - name: Run Clippy | |
| run: cargo clippy --locked --workspace --all-features --all-targets | |
| test_installers: | |
| strategy: | |
| matrix: | |
| runner: [ubuntu-latest, macos-latest, windows-latest] | |
| package_manager: [npm, npm_global, pnpm] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 | |
| - run: mise run install_${{matrix.package_manager}} | |
| test: | |
| strategy: | |
| matrix: | |
| runner: [ubuntu-latest, macos-15, windows-2025] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 | |
| - uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| with: | |
| # This is how we test with musl linux. We check the glibc version in the `check_minimal_glibc` job | |
| target: ${{ matrix.runner == 'ubuntu-latest' && 'x86_64-unknown-linux-musl' || '' }} | |
| - if: ${{ matrix.runner == 'ubuntu-latest' }} | |
| name: Install musl-tools for cross-compiling | |
| run: sudo apt-get install --yes --no-install-recommends musl-tools | |
| - run: mise run test ${{ matrix.runner == 'ubuntu-latest' && ' --target x86_64-unknown-linux-musl' || '' }} | |
| test_minimal_glibc: | |
| name: Test with minimal glibc versions | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/apollographql/ci-utility-docker-images/apollo-rust-builder:0.24.0 | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ github.head_ref || github.ref_name }} | |
| - name: Fix git ownership | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Debug git state | |
| run: | | |
| git status | |
| git branch -a | |
| git log --oneline -1 | |
| git symbolic-ref HEAD || echo "Detached HEAD detected" | |
| - uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 | |
| - run: mise run test | |
| - run: mise run check-glibc |