Add macOS Intel (x86_64) build to CI workflow (#803)

This commit is contained in:
Patrick Scheid authored and GitHub committed 2026-02-07 10:43:11 +01:00
1 parent a4dc708f63
commit 6555001fe9
1 file changed
+14 -5
+14 -5
View File
@@ -105,7 +105,15 @@ jobs:
build-macos: build-macos:
needs: [prepare, test] needs: [prepare, test]
runs-on: macos-latest strategy:
fail-fast: false
matrix:
include:
- runner: macos-latest
arch: arm64
- runner: macos-15-intel
arch: x86_64
runs-on: ${{ matrix.runner }}
env: env:
KATRAIN_VERSION: ${{ needs.prepare.outputs.version }} KATRAIN_VERSION: ${{ needs.prepare.outputs.version }}
steps: steps:
@@ -152,14 +160,14 @@ jobs:
-srcfolder dmg_temp \ -srcfolder dmg_temp \
-ov \ -ov \
-format UDZO \ -format UDZO \
"KaTrain-${{ env.KATRAIN_VERSION }}.dmg" "KaTrain-${{ env.KATRAIN_VERSION }}-${{ matrix.arch }}.dmg"
mkdir -p osx_app mkdir -p osx_app
mv "KaTrain-${{ env.KATRAIN_VERSION }}.dmg" osx_app/ mv "KaTrain-${{ env.KATRAIN_VERSION }}-${{ matrix.arch }}.dmg" osx_app/
- name: Upload macOS artifacts - name: Upload macOS artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: KaTrainMacOS-${{ env.KATRAIN_VERSION }} name: KaTrainMacOS-${{ env.KATRAIN_VERSION }}-${{ matrix.arch }}
path: osx_app path: osx_app
# This job publishes the package to PyPI. # This job publishes the package to PyPI.
@@ -212,7 +220,8 @@ jobs:
### Downloads ### Downloads
- **Windows**: Download the `.exe` files or `.zip` folders. - **Windows**: Download the `.exe` files or `.zip` folders.
- **macOS**: Download the `.dmg` file. - **macOS (Apple Silicon)**: Download the `arm64` `.dmg` file.
- **macOS (Intel)**: Download the `x86_64` `.dmg` file.
files: ./artifacts/* files: ./artifacts/*
draft: true draft: true
prerelease: false prerelease: false