Files
zeekayandHanzo Dev f0491d60fc measure: compile off unix
The file identity the digest cache keys on was unix-only, so vm-measure did not
compile for Windows. The hanzo CLI links it on all five targets it ships, and
every Windows build of the CLI since it took the crate (v8.5.158, v8.5.160)
failed there: `cannot find function identity`. Off unix the identity is length
and modification time; the Linux CI leg now checks the crate for Windows.

2.0.3.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 10:55:44 -07:00

41 lines
1.4 KiB
YAML

# Runs on the Hanzo Git act_runners (git.hanzo.ai); labels from
# hanzoai/.github/RUNNERS.md. The workspace's default members exclude vm-linux,
# so the Linux leg checks it by name.
name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
macos:
# darwin-arm64: the label RUNNERS.md registers for the
# Apple pool. macos-arm64 is not one it lists, and a job
# asking for a label no runner advertises queues forever rather than
# failing — so the repo keeps looking like it has CI on this leg.
runs-on: darwin-arm64
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test
linux:
runs-on: linux-arm64
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-gnu
- run: cargo check -p vm-linux
# The hanzo CLI links vm-measure on all five targets it ships. 2.0.1 and
# 2.0.2 compiled on unix only, and every Windows build of the CLI since
# failed on them, so this leg compiles it for Windows too.
- run: cargo check -p vm-measure --target x86_64-pc-windows-gnu