Skip to content

Commit

Permalink
build: Enable macOS-arm bundle builds (#1121)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
  - Added support for macOS 14 in release workflows.
- Enhanced test execution processes to include additional test commands.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
Czaki authored Jul 5, 2024
1 parent 2e64542 commit 3d42678
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "windows-2019", "macos-13"] #, "macos-14"]
os: ["ubuntu-20.04", "windows-2019", "macos-13", "macos-14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -46,6 +46,11 @@ jobs:
- name: Install PartSeg
run: python -m pip install --editable ".[pyinstaller]" --constraint requirements/constraints_py3.10.txt

- name: compile numpy on macos-14
if: ${{ matrix.os == 'macos-14' }}
run: |
python -m pip install --no-binary numpy numpy --force-reinstall --constraint requirements/constraints_py3.10.txt
- name: Build PartSeg bundle
run: python build_utils/create_and_pack_executable.py

Expand All @@ -58,8 +63,7 @@ jobs:
- name: Test PartSeg bundle
uses: aganders3/headless-gui@v2
with:
run: dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test

run: dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test


create_release:
Expand Down
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ stages:
macos:
imageName: 'macos-13'
test_path: dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test
macos_arm:
imageName: 'macos-14'
test_path: dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test
windows:
imageName: 'windows-2019'
test_path: dist\PartSeg\PartSeg _test
Expand Down

0 comments on commit 3d42678

Please sign in to comment.