name: Native Rust checks on: push: branches: [main] pull_request: permissions: contents: read jobs: native-rust: runs-on: macos-26 timeout-minutes: 15 env: CARGO_BUILD_JOBS: 3 CARGO_BUILD_TARGET: aarch64-apple-darwin RUSTUP_TOOLCHAIN: 1.100.0-aarch64-apple-darwin steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Verify runner architecture run: | uname -m test "$(uname -m)" = arm64 test "$(sysctl -n sysctl.proc_translated)" = 0 - name: Install native Rust run: | rustup toolchain install "$RUSTUP_TOOLCHAIN" --profile minimal --component rustfmt --component clippy rustc -vV - name: Check formatting and lint run: | cargo fmt --all -- --check cargo clippy --locked --workspace --all-targets -- -D warnings - name: Run CPU tests and dependency checks run: | cargo test --locked --workspace scripts/audit/dependencies.sh scripts/audit/claims.sh - name: Inspect native CLI run: | cargo build --locked -p xenora binary=target/aarch64-apple-darwin/debug/xenora file "$binary" test "$(lipo -archs "$binary")" = arm64 otool -L "$binary"