Skip to content

Commit 11cab02

Browse files
author
kun.ran
committed
feat: workflow build mac x64
1 parent 80053ee commit 11cab02

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/quickdesk-macos.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,15 @@ env:
2929

3030
jobs:
3131
build:
32-
name: Build
33-
runs-on: macos-14
32+
name: Build (${{ matrix.arch }})
33+
strategy:
34+
matrix:
35+
include:
36+
- runner: macos-14
37+
arch: arm64
38+
- runner: macos-13
39+
arch: x64
40+
runs-on: ${{ matrix.runner }}
3441
env:
3542
QT_VERSION: '6.8.3'
3643
steps:
@@ -56,25 +63,26 @@ jobs:
5663
~/.cargo/registry
5764
~/.cargo/git
5865
quickdesk-mcp/target
59-
key: ${{ runner.os }}-cargo-${{ hashFiles('quickdesk-mcp/Cargo.lock') }}
60-
restore-keys: ${{ runner.os }}-cargo-
66+
quickdesk-skill-host/target
67+
key: ${{ runner.os }}-${{ matrix.arch }}-cargo-${{ hashFiles('quickdesk-mcp/Cargo.lock', 'quickdesk-skill-host/Cargo.lock') }}
68+
restore-keys: ${{ runner.os }}-${{ matrix.arch }}-cargo-
6169

6270
- name: Build
6371
env:
6472
ENV_QUICKDESK_API_KEY: ${{ secrets.QUICKDESK_API_KEY }}
65-
run: bash scripts/build_qd_mac.sh Release
73+
run: bash scripts/build_qd_mac.sh Release ${{ matrix.arch }}
6674

6775
- name: Build MCP Bridge
68-
run: bash scripts/build_mcp_mac.sh Release
76+
run: bash scripts/build_mcp_mac.sh Release ${{ matrix.arch }}
6977

7078
- name: Build Skill Host
71-
run: bash scripts/build_skill_host_mac.sh Release
79+
run: bash scripts/build_skill_host_mac.sh Release ${{ matrix.arch }}
7280

7381
- name: Build WebClient
7482
run: bash scripts/build_webclient_mac.sh
7583

7684
- name: Publish
77-
run: bash scripts/publish_qd_mac.sh Release
85+
run: bash scripts/publish_qd_mac.sh Release ${{ matrix.arch }}
7886

7987
- name: Package DMG
8088
run: bash scripts/package_qd_mac.sh Release
@@ -88,7 +96,7 @@ jobs:
8896
- name: Upload artifact
8997
uses: actions/upload-artifact@v4
9098
with:
91-
name: QuickDesk-mac-arm64-${{ steps.version.outputs.ref-name }}
99+
name: QuickDesk-mac-${{ matrix.arch }}-${{ steps.version.outputs.ref-name }}
92100
path: publish/Release/QuickDesk.dmg
93101

94102
- name: Upload to release
@@ -97,6 +105,6 @@ jobs:
97105
with:
98106
repo_token: ${{ secrets.GITHUB_TOKEN }}
99107
file: publish/Release/QuickDesk.dmg
100-
asset_name: QuickDesk-mac-arm64-${{ steps.version.outputs.ref-name }}.dmg
108+
asset_name: QuickDesk-mac-${{ matrix.arch }}-${{ steps.version.outputs.ref-name }}.dmg
101109
tag: ${{ github.ref }}
102110
overwrite: true

0 commit comments

Comments
 (0)