mirror of
https://github.com/unraid/api.git
synced 2026-01-06 16:49:49 -06:00
chore: add upx and modclean to github actions workflow
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -131,7 +131,7 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Clean node_modules
|
||||
run: npm run clean && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune
|
||||
run: npm run clean && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune && modclean -n default:safe
|
||||
|
||||
- name: Add commit hash to version
|
||||
if: startsWith(github.ref, 'refs/tags/v') == false
|
||||
@@ -180,6 +180,12 @@ jobs:
|
||||
with:
|
||||
name: unraid-api-source
|
||||
|
||||
- name: Install upx
|
||||
run: sudo apt-get install upx
|
||||
|
||||
- name: Reduce node size
|
||||
run: upx ~/.nexe/linux-x64-14.15.3
|
||||
|
||||
- name: Unpack unraid-api source tgz
|
||||
shell: bash
|
||||
run: tar xvzf ./unraid-api-*.tgz --strip 1 && rm ./unraid-api-*.tgz
|
||||
|
||||
Reference in New Issue
Block a user