@@ -234,53 +234,53 @@ jobs:
234
234
235
235
EOF
236
236
237
- - name : Cache UPX
238
- id : cache-upx
239
- uses : actions/cache@v4
240
- with :
241
- path : " upxInstallations/**"
242
- key : cache-upx-${{ runner.os }}-${{ github.workflow }}
243
-
244
- - name : Compress CUDA binary on Windows
245
- if : startsWith(matrix.config.os, 'windows')
246
- shell : bash
247
- env :
248
- UPX_VERSION : 4.2.4
249
- run : |
250
- mkdir -p upxInstallations
251
-
252
- if [ ! -f "./upxInstallations/upx-${UPX_VERSION}-win64.zip" ]; then
253
- pushd upxInstallations
254
- curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-win64.zip"
255
- popd
256
- fi
257
-
258
- mkdir -p upx
259
- unzip -d ./upx "./upxInstallations/upx-${UPX_VERSION}-win64.zip"
260
- mv "./upx/upx-${UPX_VERSION}-win64" ./upx/upx
261
-
262
- ./upx/upx/upx.exe --best ./bins/win-x64-cuda/llama-addon.node
263
-
264
- - name : Compress CUDA binary on Ubuntu
265
- if : startsWith(matrix.config.name, 'Ubuntu GCC')
266
- env :
267
- UPX_VERSION : 4.2.4
268
- run : |
269
- mkdir -p upxInstallations
270
-
271
- if [ ! -f "./upxInstallations/upx-${UPX_VERSION}-amd64_linux.tar.xz" ]; then
272
- pushd upxInstallations
273
- curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz"
274
- popd
275
- fi
276
-
277
- mkdir -p upx
278
- tar -xvf "./upxInstallations/upx-${UPX_VERSION}-amd64_linux.tar.xz" -C ./upx
279
- mv "./upx/upx-${UPX_VERSION}-amd64_linux" ./upx/upx
280
-
281
- chmod +x ./bins/linux-x64-cuda/llama-addon.node
282
- ./upx/upx/upx --best ./bins/linux-x64-cuda/llama-addon.node
283
- chmod -x ./bins/linux-x64-cuda/llama-addon.node
237
+ # - name: Cache UPX
238
+ # id: cache-upx
239
+ # uses: actions/cache@v4
240
+ # with:
241
+ # path: "upxInstallations/**"
242
+ # key: cache-upx-${{ runner.os }}-${{ github.workflow }}
243
+ #
244
+ # - name: Compress CUDA binary on Windows
245
+ # if: startsWith(matrix.config.os, 'windows')
246
+ # shell: bash
247
+ # env:
248
+ # UPX_VERSION: 4.2.4
249
+ # run: |
250
+ # mkdir -p upxInstallations
251
+ #
252
+ # if [ ! -f "./upxInstallations/upx-${UPX_VERSION}-win64.zip" ]; then
253
+ # pushd upxInstallations
254
+ # curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-win64.zip"
255
+ # popd
256
+ # fi
257
+ #
258
+ # mkdir -p upx
259
+ # unzip -d ./upx "./upxInstallations/upx-${UPX_VERSION}-win64.zip"
260
+ # mv "./upx/upx-${UPX_VERSION}-win64" ./upx/upx
261
+ #
262
+ # ./upx/upx/upx.exe --best ./bins/win-x64-cuda/llama-addon.node
263
+ #
264
+ # - name: Compress CUDA binary on Ubuntu
265
+ # if: startsWith(matrix.config.name, 'Ubuntu GCC')
266
+ # env:
267
+ # UPX_VERSION: 4.2.4
268
+ # run: |
269
+ # mkdir -p upxInstallations
270
+ #
271
+ # if [ ! -f "./upxInstallations/upx-${UPX_VERSION}-amd64_linux.tar.xz" ]; then
272
+ # pushd upxInstallations
273
+ # curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz"
274
+ # popd
275
+ # fi
276
+ #
277
+ # mkdir -p upx
278
+ # tar -xvf "./upxInstallations/upx-${UPX_VERSION}-amd64_linux.tar.xz" -C ./upx
279
+ # mv "./upx/upx-${UPX_VERSION}-amd64_linux" ./upx/upx
280
+ #
281
+ # chmod +x ./bins/linux-x64-cuda/llama-addon.node
282
+ # ./upx/upx/upx --best ./bins/linux-x64-cuda/llama-addon.node
283
+ # chmod -x ./bins/linux-x64-cuda/llama-addon.node
284
284
285
285
- name : Publish artifact
286
286
uses : actions/upload-artifact@v4
0 commit comments