ci: build x64 version with macOS 13, remove macOS from test build

This commit is contained in:
wj-xiao
2026-01-19 13:56:19 +08:00
parent c26a642933
commit cd8ef315bc
2 changed files with 10 additions and 24 deletions

View File

@@ -82,24 +82,11 @@ jobs:
target: windows
build_script: build:win
artifact_name: desktop-windows
- os: macos-latest
target: macos-arm64
build_script: build:mac
build_args: --arm64
artifact_name: desktop-macos-arm64
- os: macos-13
target: macos-x64
build_script: build:mac
build_args: --x64
artifact_name: desktop-macos-x64
defaults:
run:
working-directory: desktop
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -115,18 +102,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential python3 libudev-dev rpm
- name: Import Code-Signing Certificates
if: startsWith(matrix.os, 'macos')
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Install dependencies
run: npm install
- name: Build desktop package
run: npm run ${{ matrix.build_script }} ${{ matrix.build_args || '' }}
run: npm run ${{ matrix.build_script }}
- name: Upload desktop artifacts
uses: actions/upload-artifact@v4

View File

@@ -92,9 +92,15 @@ jobs:
build_script: build:win-full
artifact_name: desktop-windows
- os: macos-latest
target: macos
build_script: build:mac-full
artifact_name: desktop-macos
target: macos-arm64
build_script: build:mac
build_args: --arm64
artifact_name: desktop-macos-arm64
- os: macos-13
target: macos-x64
build_script: build:mac
build_args: --x64
artifact_name: desktop-macos-x64
defaults:
run:
working-directory: desktop