-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added copy of
build
job to test_release
workflow
- Loading branch information
1 parent
910c0e2
commit 8ad14ce
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,43 @@ jobs: | |
file_path: "mini_face_oxidized/open_face_api/vcpkg.json" | ||
prop_path: "version" | ||
|
||
# TODO: think about reusing this job instead of copying | ||
build: | ||
name: Build wheels on ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-15] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install vcpkg | ||
uses: lukka/[email protected] | ||
# Separate vcpkg installation procedure on Linux | ||
if: runner.os != 'Linux' | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir dist | ||
|
||
- name: Show obtained wheels and some debug info | ||
run: | | ||
ls ./dist | ||
- name: Store wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: ./dist/*.whl | ||
|
||
publish: | ||
name: >- | ||
Publish Python 🐍 distribution 📦 to PyPI | ||
|