@@ -15,25 +15,32 @@ jobs:
1515 strategy :
1616 fail-fast : false
1717 matrix :
18- platform :
19- - macos-latest # very expensive if in private repo, but we're OSS now
20- - ubuntu-20.04
21- - windows-latest
18+ include :
19+ - platform : " macos-latest"
20+ args : " --target aarch64-apple-darwin"
21+ - platform : " macos-latest"
22+ args : " --target x86_64-apple-darwin"
23+ - platform : " ubuntu-22.04"
24+ args : " "
25+ - platform : " windows-latest"
26+ args : " "
27+
2228 runs-on : ${{ matrix.platform }}
2329
2430 steps :
2531 - name : Checkout repository
26- uses : actions/checkout@v3
32+ uses : actions/checkout@v4
2733
2834 - name : Install dependencies (ubuntu only)
29- if : matrix.platform == 'ubuntu-20.04'
30- # You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
35+ if : matrix.platform == 'ubuntu-22.04'
3136 run : |
3237 sudo apt-get update
33- sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0 -dev libayatana-appindicator3- dev librsvg2-dev
38+ sudo apt-get install -y libwebkit2gtk-4.1 -dev libappindicator3- dev librsvg2-dev patchelf
3439
35- - name : Rust setup
40+ - name : Install Rust stable
3641 uses : dtolnay/rust-toolchain@stable
42+ with :
43+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
3744
3845 - name : Rust cache
3946 uses : swatinem/rust-cache@v2
@@ -43,15 +50,15 @@ jobs:
4350 - uses : pnpm/action-setup@v2
4451 with :
4552 version : 8
46- - name : Sync node version and setup cache
47- uses : actions/setup-node@v3
53+
54+ - name : Setup node
55+ uses : actions/setup-node@v4
4856 with :
4957 node-version : " lts/*"
50- cache : " pnpm" # Set this to npm, yarn or pnpm.
58+ cache : " pnpm"
5159
5260 - name : Install frontend dependencies
53- # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
54- run : pnpm install # Change this to npm, yarn or pnpm.
61+ run : pnpm install
5562
5663 - name : Populate the version strings
5764 id : versions
7279 PUBLIC_TAURI_VERSION : ${{ env.PUBLIC_TAURI_VERSION }}
7380 PUBLIC_SVELTE_VERSION : ${{ env.PUBLIC_SVELTE_VERSION }}
7481 with :
75- tagName : ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
76- releaseName : " Prompta v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
82+ tagName : ${{ github.ref_name }}
83+ releaseName : " Prompta v__VERSION__"
7784 releaseBody : " See the assets to download and install this version."
7885 releaseDraft : false
7986 prerelease : false
87+ args : ${{ matrix.args }}
8088 tauriScript : pnpm
0 commit comments