File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Mac
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : macos-latest
9+
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Set up Node.js
15+ uses : actions/setup-node@v4
16+ with :
17+ node-version : 20
18+
19+ - name : Enable Corepack and install Yarn
20+ run : |
21+ corepack enable
22+ yarn --version
23+
24+ - name : Install frontend dependencies
25+ run : yarn install --frozen-lockfile
26+
27+ - name : Set up Rust
28+ uses : dtolnay/rust-toolchain@stable
29+ with :
30+ targets : aarch64-apple-darwin,x86_64-apple-darwin
31+
32+ - name : Cache Rust dependencies
33+ uses : Swatinem/rust-cache@v2
34+ with :
35+ workspaces : src-tauri
36+
37+ - name : Build Tauri app (universal binary)
38+ run : yarn tauri build --target universal-apple-darwin
39+ env :
40+ TAURI_SIGNING_PRIVATE_KEY : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
41+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
42+
43+ - name : Upload installer
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : game-library-mac
47+ path : |
48+ src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
49+ src-tauri/target/universal-apple-darwin/release/bundle/macos/*.app
50+ if-no-files-found : error
51+ retention-days : 30
You can’t perform that action at this time.
0 commit comments