@@ -72,16 +72,21 @@ jobs:
72
72
uses : swatinem/rust-cache@v2
73
73
74
74
- name : Install pnpm
75
- uses : pnpm/action-setup@v3
75
+ uses : pnpm/action-setup@v4
76
76
with :
77
- version : 9.1.2
77
+ version : 9
78
+ run_install : |
79
+ - recursive: true
80
+ args: [--frozen-lockfile]
78
81
79
- - name : Sync node version and setup cache
82
+
83
+ - name : Install Node.js
80
84
uses : actions/setup-node@v4
81
85
with :
82
- node-version : " lts/* "
86
+ node-version : " 22 "
83
87
cache : " pnpm"
84
88
89
+
85
90
- name : Cache pnpm modules
86
91
uses : actions/cache@v4
87
92
with :
92
97
restore-keys : |
93
98
${{ runner.OS }}-pnpm-${{ runner.ARCH }}-
94
99
95
- - name : Install dependencies
96
- run : pnpm install --no-frozen-lockfile
97
-
98
100
- name : Set up Visual Studio shell
99
101
if : matrix.os == 'windows-latest' && matrix.arch == 'arm64'
100
102
uses : TheMrMilchmann/setup-msvc-dev@v3
@@ -147,20 +149,25 @@ jobs:
147
149
arch : arm64
148
150
runner : ubicloud-standard-4-arm
149
151
rust_target : aarch64-unknown-linux-gnu
152
+ os_name : linux
150
153
- os : ubuntu-latest
151
154
arch : amd64
152
155
rust_target : x86_64-unknown-linux-gnu
156
+ os_name : linux
153
157
- os : macos-latest
154
158
arch : universal
155
159
rust_target : universal-apple-darwin
160
+ os_name : macos
156
161
- os : windows-latest
157
162
arch : x86
158
163
rust_target : i686-pc-windows-msvc
159
164
msvc_arch : x86
165
+ os_name : windows
160
166
- os : windows-latest
161
167
arch : x86_64
162
168
rust_target : x86_64-pc-windows-msvc
163
169
msvc_arch : x64
170
+ os_name : windows
164
171
165
172
runs-on : ${{ matrix.runner || matrix.os }}
166
173
@@ -178,15 +185,19 @@ jobs:
178
185
- name : Cache Rust
179
186
uses : swatinem/rust-cache@v2
180
187
188
+
181
189
- name : Install pnpm
182
- uses : pnpm/action-setup@v3
190
+ uses : pnpm/action-setup@v4
183
191
with :
184
- version : 9.1.2
192
+ version : 9
193
+ run_install : |
194
+ - recursive: true
195
+ args: [--frozen-lockfile]
185
196
186
- - name : Sync node version and setup cache
197
+ - name : Install Node.js
187
198
uses : actions/setup-node@v4
188
199
with :
189
- node-version : " lts/* "
200
+ node-version : " 22 "
190
201
cache : " pnpm"
191
202
192
203
- name : Cache pnpm modules
@@ -199,9 +210,6 @@ jobs:
199
210
restore-keys : |
200
211
${{ runner.OS }}-pnpm-${{ runner.ARCH }}-
201
212
202
- - name : Install dependencies
203
- run : pnpm install --no-frozen-lockfile
204
-
205
213
- name : Setup platform-specific dependencies
206
214
if : matrix.os == 'ubuntu-latest'
207
215
run : |
@@ -263,13 +271,13 @@ jobs:
263
271
mv ./target/release/kftui ./target/release/kftui_macos_universal
264
272
gh release upload ${{ github.ref_name }} ./target/release/kftui_macos_universal --clobber
265
273
elif [ "${{ matrix.os }}" == "windows-latest" ]; then
266
- mv ./target/${{ matrix.rust_target }}/release/kftui.exe ./target/release/kftui_${{ matrix.arch }}.exe
267
- chmod +x ./target/release/kftui_${{ matrix.arch }}.exe
268
- gh release upload ${{ github.ref_name }} ./target/release/kftui_${{ matrix.arch }}.exe --clobber
274
+ mv ./target/${{ matrix.rust_target }}/release/kftui.exe ./target/release/kftui_${{ matrix.os_name }}_${{ matrix. arch }}.exe
275
+ chmod +x ./target/release/kftui_${{ matrix.os_name }}_${{ matrix. arch }}.exe
276
+ gh release upload ${{ github.ref_name }} ./target/release/kftui_${{ matrix.os_name }}_${{ matrix. arch }}.exe
269
277
else
270
- mv ./target/${{ matrix.rust_target }}/release/kftui ./target/release/kftui_${{ matrix.arch }}
271
- chmod +x ./target/release/kftui_${{ matrix.arch }}
272
- gh release upload ${{ github.ref_name }} ./target/release/kftui_${{ matrix.arch }} --clobber
278
+ mv ./target/${{ matrix.rust_target }}/release/kftui ./target/release/kftui_${{ matrix.os_name }}_${{ matrix. arch }}
279
+ chmod +x ./target/release/kftui_${{ matrix.os_name }}_${{ matrix. arch }}
280
+ gh release upload ${{ github.ref_name }} ./target/release/kftui_${{ matrix.os_name }}_${{ matrix.arch }}
273
281
fi
274
282
env :
275
283
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments