-
Notifications
You must be signed in to change notification settings - Fork 31
112 lines (95 loc) · 3.11 KB
/
quickdesk-macos.yml
File metadata and controls
112 lines (95 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: QuickDesk macOS
on:
push:
paths:
- 'QuickDesk/**'
- 'quickdesk-mcp/**'
- 'cmake/**'
- 'scripts/**'
- 'WebClient/**'
- 'CMakeLists.txt'
- '.github/workflows/quickdesk-macos.yml'
pull_request:
paths:
- 'QuickDesk/**'
- 'quickdesk-mcp/**'
- 'cmake/**'
- 'scripts/**'
- 'WebClient/**'
- 'CMakeLists.txt'
- '.github/workflows/quickdesk-macos.yml'
workflow_dispatch:
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: Build (${{ matrix.arch }})
strategy:
matrix:
include:
- runner: macos-14
arch: arm64
- runner: macos-14
arch: x64
runs-on: ${{ matrix.runner }}
env:
QT_VERSION: '6.8.3'
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
cache: true
modules: 'qtmultimedia qtwebsockets'
- name: Set Qt path
run: echo "ENV_QT_PATH=$(dirname "$QT_ROOT_DIR")" >> $GITHUB_ENV
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.arch == 'x64' && 'x86_64-apple-darwin' || '' }}
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
quickdesk-mcp/target
quickdesk-skill-host/target
key: ${{ runner.os }}-${{ matrix.arch }}-cargo-${{ hashFiles('quickdesk-mcp/Cargo.lock', 'quickdesk-skill-host/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.arch }}-cargo-
- name: Build
env:
ENV_QUICKDESK_API_KEY: ${{ secrets.QUICKDESK_API_KEY }}
run: bash scripts/build_qd_mac.sh Release ${{ matrix.arch }}
- name: Build MCP Bridge
run: bash scripts/build_mcp_mac.sh Release ${{ matrix.arch }}
- name: Build Skill Host
run: bash scripts/build_skill_host_mac.sh Release ${{ matrix.arch }}
- name: Build WebClient
run: bash scripts/build_webclient_mac.sh
- name: Publish
run: bash scripts/publish_qd_mac.sh Release ${{ matrix.arch }}
- name: Package DMG
run: bash scripts/package_qd_mac.sh Release
- name: Get version
id: version
run: |
echo "version=$(cat version)" >> $GITHUB_OUTPUT
echo "ref-name=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: QuickDesk-mac-${{ matrix.arch }}-${{ steps.version.outputs.ref-name }}
path: publish/Release/QuickDesk.dmg
- name: Upload to release
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: publish/Release/QuickDesk.dmg
asset_name: QuickDesk-mac-${{ matrix.arch }}-${{ steps.version.outputs.ref-name }}.dmg
tag: ${{ github.ref }}
overwrite: true