From 8be56e708ea606c6eedef56ec918e658eef1fef8 Mon Sep 17 00:00:00 2001 From: Feng Ruohang Date: Fri, 13 Nov 2026 09:47:47 +0800 Subject: [PATCH] ci: check Intel Mac build and startup --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ CONTRIBUTING.md | 4 ++++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca7320d..037b774 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,32 @@ concurrency: cancel-in-progress: true jobs: + mac-intel: + name: Intel Mac build and startup + runs-on: macos-15-intel + timeout-minutes: 15 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version: "1.27.4" + check-latest: false + cache: true + - name: Build native Intel Mac binaries + run: | + test "$(uname -m)" = x86_64 + source packaging/toolchain.env + test "$(go env GOVERSION)" = "go${BARN_GO_VERSION}" + make build + - name: Check CLI and helper startup + env: + BARN_HOME: ${{ runner.temp }}/barn-intel + run: | + ./bin/barn version + ./bin/barn --help + ./bin/barn-hosts-helper --help mac: name: Mac host and native component gates runs-on: xcode-27 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee80099..848088c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,6 +68,10 @@ image-pipeline boundary tests, installer tests, maintenance ownership, and the dependency-license inventory. It must pass before a pull request is ready. +The Intel Mac CI job builds the CLI and hosts helper on `macos-15-intel` +and checks that both executables start. Intel Mac coverage is limited to +build and startup checks; the platform remains Tier 2. + The toolchain is pinned in `packaging/toolchain.env` and CI asserts the exact versions, so install those versions locally: