@@ -155,34 +155,38 @@ jobs:
155155 name : wheels-mac-x86_64
156156 path : dist
157157
158- # macos_aarch64:
159- # runs-on: macos-latest-large
158+ macos_aarch64 :
159+ runs-on : macos-latest-large
160160
161- # if: |
162- # github.event_name != 'pull_request' ||
163- # github.event.pull_request.author_association == 'COLLABORATOR' ||
164- # github.event.pull_request.author_association == 'MEMBER' ||
165- # github.event.pull_request.user.login == 'dependabot[bot]' ||
166- # contains(github.event.pull_request.labels.*.name, 'safe to test')
161+ if : |
162+ github.event_name != 'pull_request' ||
163+ github.event.pull_request.author_association == 'COLLABORATOR' ||
164+ github.event.pull_request.author_association == 'MEMBER' ||
165+ github.event.pull_request.user.login == 'dependabot[bot]' ||
166+ contains(github.event.pull_request.labels.*.name, 'safe to test')
167167
168- # steps:
169- # - uses: actions/checkout@v4
170- # - uses: actions/setup-python@v5
171- # with:
172- # python-version: '3.10'
173- # cache: "pip"
174- # - run: pip install -r requirements.txt
175- # - name: Build wheels
176- # uses: PyO3/maturin-action@v1
177- # with:
178- # target: aarch64
179- # args: --release --out dist --find-interpreter
180- # sccache: 'true'
181- # - name: Upload wheels
182- # uses: actions/upload-artifact@v4
183- # with:
184- # name: wheels-mac-aarch64
185- # path: dist
168+ steps :
169+ - uses : actions/checkout@v4
170+ - uses : actions/setup-python@v5
171+ with :
172+ python-version : ' 3.10'
173+ cache : " pip"
174+ - name : Install dependencies
175+ run : pip install -r requirements.txt
176+ - name : Prepare build directories
177+ run : |
178+ mkdir -p artifacts
179+ mkdir -p src/c2pa/libs
180+ rm -rf dist/* build/*
181+ - name : Download native artifacts (from tag c2pa-v0.55.0)
182+ run : python3 scripts/download_artifacts.py c2pa-v0.55.0
183+ - name : Build wheel
184+ run : python setup.py bdist_wheel
185+ - name : Upload wheels
186+ uses : actions/upload-artifact@v4
187+ with :
188+ name : wheels-mac-aarch64
189+ path : dist
186190
187191 sdist :
188192 runs-on : ubuntu-latest
0 commit comments