1- name : Publish
1+ name : " publish "
22
33on :
44 workflow_dispatch :
@@ -11,12 +11,12 @@ jobs:
1111 permissions :
1212 contents : write
1313 strategy :
14- fail-fast : false,
14+ fail-fast : false
1515 matrix :
1616 include :
17- - platform : " macos-latest"
17+ - platform : " macos-latest" # for Arm based macs (M1 and above).
1818 args : " --target aarch64-apple-darwin"
19- - platform : " macos-latest"
19+ - platform : " macos-latest" # for Intel based macs.
2020 args : " --target x86_64-apple-darwin"
2121 - platform : " ubuntu-22.04"
2222 args : " "
@@ -27,22 +27,27 @@ jobs:
2727 steps :
2828 - uses : actions/checkout@v4
2929
30+ - name : install dependencies (ubuntu only)
31+ if : matrix.platform == 'ubuntu-22.04'
32+ run : |
33+ sudo apt-get update
34+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
35+
3036 - name : setup node
3137 uses : actions/setup-node@v4
3238 with :
3339 node-version : lts/*
40+ cache : " npm"
3441
3542 - name : install Rust stable
3643 uses : dtolnay/rust-toolchain@stable
3744 with :
38- # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
3945 targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4046
41- - name : install dependencies (ubuntu only)
42- if : matrix.platform == 'ubuntu-22.04'
43- run : |
44- sudo apt-get update
45- sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
47+ - name : Rust cache
48+ uses : swatinem/rust-cache@v2
49+ with :
50+ workspaces : " ./src-tauri -> target"
4651
4752 - name : install frontend dependencies
4853 run : npm install
0 commit comments