Fix v2.9.3 release CI failures #11
Workflow file for this run
This file contains hidden or 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
| name: Release (macOS) | |
| # Separate from the Windows release so a macOS failure doesn't block Windows builds. | |
| # macOS builds are unsigned — users must right-click > Open to bypass Gatekeeper. | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install ".[dev]" | |
| - name: Run tests | |
| run: pytest -q --tb=short | |
| - name: Build macOS app | |
| run: python -m PyInstaller spirescope.spec --clean --noconfirm | |
| - name: Strip dist-info metadata | |
| run: find dist/Spirescope -name "*.dist-info" -type d -exec rm -rf {} + | |
| - name: Create zip archive | |
| run: | | |
| cd dist | |
| zip -r Spirescope-${{ github.ref_name }}-macos.zip Spirescope/ | |
| cp Spirescope-${{ github.ref_name }}-macos.zip Spirescope-macos.zip | |
| - name: Upload to existing release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/Spirescope-${{ github.ref_name }}-macos.zip | |
| dist/Spirescope-macos.zip |