From 7a714b9bf5cd498abddd62861832de2242d58c40 Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Wed, 12 Mar 2025 21:59:56 +0000 Subject: [PATCH] ci: build gojsonnet wheels on Mac OS Use the GitHub setup-go action to install Go, as it is not in the Mac OS runner images by default. I tried but failed to get a Windows wheel build working, so that remains disabled for now. --- .github/workflows/publish-python.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-python.yml b/.github/workflows/publish-python.yml index 1bf45f1..2d64c06 100644 --- a/.github/workflows/publish-python.yml +++ b/.github/workflows/publish-python.yml @@ -54,7 +54,9 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04] + os: [ubuntu-22.04, macos-13, macos-latest] + # Windows Wheel build doesn't work yet. + # os: [windows-2022] permissions: contents: read @@ -64,6 +66,13 @@ jobs: with: submodules: true + - uses: actions/setup-go@v5 + # Linux runner doesn't need Go setup because it's installed + # separately in each cibuildwheel build container + if: "${{ runner.os != 'Linux' }}" + with: + go-version: "1.23.7" + - name: Build wheels uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0 env: