Skip to content

save

save #39

Workflow file for this run

name: build pygo-jwt
on:
workflow_dispatch:
push:
branches:
- release/pygo-jwt
- feature/pygo-jwt/python-versions
env:
package: "pygo-jwt"
go_version: 1.21.8
jobs:
build_wheels:
name: build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
if: ${{ contains('linux', runner.os) }}
with:
platforms: arm64
- uses: actions/setup-go@v5
if: ${{ contains(fromJSON('["macos", "windows"]'), runner.os) }}
with:
go-version: ${{ env.go_version }}
- name: build wheels
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_ARCHS_LINUX: auto aarch64
with:
package-dir: pygo-jwt
output-dir: wheelhouse
config-file: "{package}/wheel.toml"
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ env.package }}-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl