name: wai-quantum matrix-extension member # The fabric's matrix-extension member: the gate's fixed-point arithmetic in the # processor's streaming vector mode (SME), 64-bit lanes, certified bit-exact # against the CPU reference's pinned corpus digests. # # - sme-emulated (the container runner): the member's device tests for aarch64 # Linux, run under a user-mode emulator the job fetches and runs itself # (Debian's static QEMU, pinned, which emulates SME), never the host's binfmt # handler; the job declares the emulator, and every certificate says it was # earned there, never on silicon. # - sme-absent (the macOS runner, whose processor has no SME): the same build # finds no member and says why. # # Silicon: a processor with SME runs the same tests with the declaration # `cpu-matrix-sme` and no emulator. concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.ref }} cancel-in-progress: true on: pull_request: paths: - 'wai/wai-quantum/**' - 'rust-toolchain.toml' - '.github/workflows/wai-quantum-sme.yml' schedule: - cron: '14 8 * * *' jobs: # Does this pull request's own diff touch the paths below? This forge matches a # workflow's `paths:` against the push, so a merge of main into a branch fires the # workflow whatever the pull request changes; every job here waits on this answer. # A push to main, a schedule, or anything the script cannot determine answers # `true` (scripts/pr-touches-paths.py). relevant: name: does this change touch it runs-on: gate outputs: run: ${{ steps.gate.outputs.run }} steps: - uses: actions/checkout@v5 with: fetch-depth: 0 - id: gate run: | set -euo pipefail r=$(python3 scripts/pr-touches-paths.py .github/workflows/wai-quantum-sme.yml \ "${{ github.event.pull_request.base.sha }}" \ "${{ github.event.pull_request.head.sha }}") echo "this change touches wai-quantum-sme: $r" echo "run=$r" >> "$GITHUB_OUTPUT" sme-emulated: name: member · matrix extension, emulated (aarch64 Linux) needs: relevant if: needs.relevant.outputs.run == 'true' runs-on: linux timeout-minutes: 90 container: image: ghcr.io/cross-rs/aarch64-unknown-linux-gnu@sha256:7f8308a8734d9fcd2ebbe9a3e4bdea74af293f0799d80c3cc341e340cda49a4c options: --memory=6g --memory-swap=6g env: WAI_QUANTUM_SME_EXPECT: cpu-matrix-sme # The emulator every aarch64 test binary runs under, which the certificates # name: Debian's static QEMU, SHA-256 pinned, fetched by the job and named as # cargo's runner. Not the image's own (5.1), and not the host's binfmt # handler, which some `linux` runners lack and others run at another # version. (Not QEMU_*: qemu-user reads every QEMU_