[mq] [skip ddci] working branch - merge 6f0e6577d8 on top of main at … #212
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: Test Nix | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - main | |
| - mq-working-branch-* | |
| # Also run on PRs that touch the devshell or what it reads. Paths mirror the | |
| # Nix CODEOWNERS entries, plus the toolchain files (read by the flake) and | |
| # this workflow itself. | |
| pull_request: | |
| paths: | |
| - "*.nix" | |
| - "flake.*" | |
| - "rust-toolchain.toml" | |
| - "nightly-toolchain.toml" | |
| - ".github/workflows/nix.yml" | |
| # Nightly safeguard: catches devshell drift from changes that don't match the | |
| # paths above (e.g. a dependency or build-script change that needs new native | |
| # tooling). Scheduled runs only fire from the default branch, against its HEAD. | |
| schedule: | |
| - cron: "0 4 * * *" # daily at 04:00 UTC | |
| # Default permissions for all jobs | |
| permissions: {} | |
| concurrency: | |
| group: ci-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}-nix | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - os: darwin | |
| cpu: arm64 | |
| base: macos-15 # always arm64-darwin | |
| - os: linux | |
| cpu: x86_64 | |
| base: ubuntu-24.04 # always x86_64-linux-gnu | |
| - os: linux | |
| cpu: aarch64 | |
| base: ubuntu-24.04-arm # always aarch64-linux-gnu | |
| name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }}) | |
| runs-on: ${{ matrix.platform.base }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check CPU arch | |
| run: | | |
| test "$(uname -m)" = "${{ matrix.platform.cpu }}" | |
| - name: Free Disk Space (Linux only) | |
| if: runner.os == 'Linux' | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1 | |
| with: | |
| tool-cache: true | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: false | |
| docker-images: false | |
| swap-storage: false | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: cachix/install-nix-action@ab739621df7a23f52766f9ccc97f38da6b7af14f # v31.10.5 | |
| - name: Print toolchain versions | |
| run: | | |
| nix develop --command rustc --version | |
| nix develop --command cargo --version | |
| nix develop --command cbindgen --version | |
| - name: Check nightly formatter toolchain | |
| run: nix develop .#nightly --command cargo fmt --version | |
| - name: Build workspace | |
| run: nix develop --command cargo build --workspace --exclude builder | |
| complete: | |
| name: Nix (complete) | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - test | |
| steps: | |
| - run: echo "DONE!" |