Skip to content

Commit a8ca466

Browse files
committed
fix: Restore macos_x86
1 parent 4380c4f commit a8ca466

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -122,30 +122,38 @@ jobs:
122122
# name: wheels-${{ matrix.target }}
123123
# path: dist
124124

125-
# macos_x86:
126-
# runs-on: macos-latest
125+
macos_x86:
126+
runs-on: macos-latest
127127

128-
# if: |
129-
# github.event_name != 'pull_request' ||
130-
# github.event.pull_request.author_association == 'COLLABORATOR' ||
131-
# github.event.pull_request.author_association == 'MEMBER' ||
132-
# github.event.pull_request.user.login == 'dependabot[bot]' ||
133-
# contains(github.event.pull_request.labels.*.name, 'safe to test')
128+
if: |
129+
github.event_name != 'pull_request' ||
130+
github.event.pull_request.author_association == 'COLLABORATOR' ||
131+
github.event.pull_request.author_association == 'MEMBER' ||
132+
github.event.pull_request.user.login == 'dependabot[bot]' ||
133+
contains(github.event.pull_request.labels.*.name, 'safe to test')
134134
135-
# steps:
136-
# - uses: actions/checkout@v4
137-
# - uses: actions/setup-python@v5
138-
# with:
139-
# python-version: '3.10'
140-
# cache: "pip"
141-
# - run:
142-
# pip install -r requirements.txt
143-
# python setup.py bdist_wheel
144-
# - name: Upload wheels
145-
# uses: actions/upload-artifact@v4
146-
# with:
147-
# name: wheels-mac-x86_64
148-
# path: dist
135+
steps:
136+
- uses: actions/checkout@v4
137+
- uses: actions/setup-python@v5
138+
with:
139+
python-version: '3.10'
140+
cache: "pip"
141+
- name: Install dependencies
142+
run: pip install -r requirements.txt
143+
- name: Prepare build directories
144+
run: |
145+
mkdir -p artifacts
146+
mkdir -p src/c2pa/libs
147+
rm -rf dist/* build/*
148+
- name: Download native artifacts (from tag c2pa-v0.55.0)
149+
run: python3 scripts/download_artifacts.py c2pa-v0.55.0
150+
- name: Build wheel
151+
run: python setup.py bdist_wheel
152+
- name: Upload wheels
153+
uses: actions/upload-artifact@v4
154+
with:
155+
name: wheels-mac-x86_64
156+
path: dist
149157

150158
# macos_aarch64:
151159
# runs-on: macos-latest-large

0 commit comments

Comments
 (0)