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.
This commit is contained in:
John Bartholomew 2025-03-12 21:59:56 +00:00
parent b9ae88d62d
commit 7a714b9bf5

View File

@ -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: