52
52
ref : ${{ github.event.inputs.ref || github.ref }} # checks out code you specify in github UI
53
53
54
54
- name : Set up Node.js
55
- uses : actions/setup-node@v3
55
+ uses : actions/setup-node@v4
56
56
with :
57
- node-version : " 18"
57
+ node-version : lts/*
58
+ cache : " pnpm"
58
59
59
60
- name : Set up Python
60
61
uses : actions/setup-python@v4
73
74
corepack prepare pnpm@latest --activate
74
75
pnpm install-reqs
75
76
77
+ - name : Install system dependencies for Linux
78
+ if : runner.os == 'linux'
79
+ run : |
80
+ sudo apt-get update
81
+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
82
+
83
+ - name : Install Rust
84
+ uses : dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
85
+ with :
86
+ # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
87
+ targets : ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
88
+
89
+ - name : Rust cache
90
+ uses : swatinem/rust-cache@v2
91
+ with :
92
+ workspaces : " ./src-tauri -> target"
93
+
76
94
- name : Build icons
77
95
run : pnpm build:icons
78
96
@@ -91,25 +109,12 @@ jobs:
91
109
# - name: Build Next.js
92
110
# run: pnpm next build
93
111
94
- - name : Install system dependencies for Linux
95
- if : runner.os == 'linux'
96
- run : |
97
- sudo apt-get update
98
- sudo apt-get install -y gio-2.0
99
- sudo apt-get install libgtk-3-dev # Debian/Ubuntu
100
-
101
- - name : Set up Rust
102
- uses : actions-rs/toolchain@v1
103
- with :
104
- profile : minimal
105
- toolchain : stable # You can also specify a version, e.g., "1.72.0"
106
- override : true
107
-
108
112
- name : Build Tauri app
109
113
run : pnpm tauri build
110
114
111
115
- name : Determine artifact path
112
116
id : artifact_path
117
+ shell : bash
113
118
run : |
114
119
if [[ "${{ runner.os }}" == "Windows" ]]; then
115
120
echo "artifact_path=src-tauri/target/release/bundle/nsis/" >> $GITHUB_ENV
0 commit comments