Skip to content

Commit

Permalink
Merge pull request #633 from getsentry/macos-arm64-on-gha
Browse files Browse the repository at this point in the history
ref: build macos arm64 on github actions
  • Loading branch information
asottile-sentry authored Feb 5, 2024
2 parents 6b92a6a + e748fe2 commit b418e52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
macos_task:
name: macos-arm64
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
env:
PATH: ${CIRRUS_WORKING_DIR}/venv/bin:${CIRRUS_WORKING_DIR}/pythons/cp38-cp38/bin:${CIRRUS_WORKING_DIR}/pythons/cp39-cp39/bin:${CIRRUS_WORKING_DIR}/pythons/cp310-cp310/bin:${CIRRUS_WORKING_DIR}/pythons/cp311-cp311/bin:${PATH}
setup_pythons_script: python3 -u docker/install-pythons --dest pythons
setup_venv_script: python3 -um venv venv && pip install -r docker/requirements.txt
script:
- python3 -um build --pypi-url https://pypi.devinfra.sentry.io
- python3 -um validate --index-url https://pypi.devinfra.sentry.io/simple
artifacts:
path: dist/*

linux_task:
name: linux-arm64
arm_container:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
name: dist-linux
path: dist/*
macos:
runs-on: macos-latest
strategy:
matrix:
runs-on: [macos-14, macos-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- run: python3 -u docker/install-pythons --dest pythons
Expand All @@ -34,14 +37,14 @@ jobs:
- run: python3 -um validate --index-url https://pypi.devinfra.sentry.io/simple
- uses: actions/upload-artifact@v3
with:
name: dist-macos
name: dist-${{ matrix.runs-on }}
path: dist/*

cirrus:
if: github.event_name != 'pull_request'
strategy:
matrix:
task: [macos-arm64, linux-arm64]
task: [linux-arm64]
runs-on: ubuntu-latest
permissions:
checks: read
Expand Down
3 changes: 3 additions & 0 deletions packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,9 @@ brew_requires = libmaxminddb
[maxminddb==2.3.0]
apt_requires = libmaxminddb-dev
brew_requires = libmaxminddb
[maxminddb==2.5.2]
apt_requires = libmaxminddb-dev
brew_requires = libmaxminddb

[mccabe==0.6.1]
[mccabe==0.7.0]
Expand Down

0 comments on commit b418e52

Please sign in to comment.