test: add workflow for building macOS DMG (arm64) with dynamic version input

This commit is contained in:
Bohdan Triapitsyn
2026-01-30 11:08:31 +02:00
parent a1ed55d3f5
commit ab431a04a6
2 changed files with 26 additions and 25 deletions
@@ -1,4 +1,4 @@
name: Build macOS 15 DMG (arm64) name: Build macOS DMG (arm64)
on: on:
workflow_dispatch: workflow_dispatch:
@@ -22,6 +22,7 @@ env:
jobs: jobs:
build-macos-dmg-arm64: build-macos-dmg-arm64:
name: Build DMG (arm64, ${{ inputs.macos_version }})
runs-on: ${{ inputs.macos_version }} runs-on: ${{ inputs.macos_version }}
steps: steps:
- name: Checkout - name: Checkout
@@ -109,7 +110,7 @@ jobs:
DMG_PATH="packages/desktop/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg" DMG_PATH="packages/desktop/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg"
if ls $DMG_PATH 1> /dev/null 2>&1; then if ls $DMG_PATH 1> /dev/null 2>&1; then
DMG_FILE=$(ls $DMG_PATH | head -n 1) DMG_FILE=$(ls $DMG_PATH | head -n 1)
DMG_NAME="OpenChamber_macos15_arm64.dmg" DMG_NAME="OpenChamber_${{ inputs.macos_version }}_arm64.dmg"
cp "$DMG_FILE" "artifacts/$DMG_NAME" cp "$DMG_FILE" "artifacts/$DMG_NAME"
else else
echo "Error: DMG file not found at $DMG_PATH" echo "Error: DMG file not found at $DMG_PATH"
@@ -119,6 +120,6 @@ jobs:
- name: Upload DMG artifact - name: Upload DMG artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: macos15-dmg-arm64 name: dmg-${{ inputs.macos_version }}-arm64
path: artifacts/*.dmg path: artifacts/*.dmg
retention-days: 7 retention-days: 7
+1 -1
View File
@@ -80,7 +80,7 @@ jobs:
build-desktop-macos: build-desktop-macos:
needs: create-release needs: create-release
runs-on: macos-15 runs-on: macos-26
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix: