Skip to content

Commit a2adca8

Browse files
committed
update
1 parent 8ab54fc commit a2adca8

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/dev_package_and_upload.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,13 @@ jobs:
7070
- name: Install UPX on Linux
7171
if: ${{ runner.os == 'Linux' && steps.cache-upx.outputs.cache-hit != 'true' }}
7272
run: |
73-
case "${{ runner.arch }}" in
74-
amd64)
75-
UPX_ARCH=x86_64
76-
;;
77-
arm64)
78-
UPX_ARCH=aarch64
79-
;;
80-
esac
81-
82-
UPX_VERSION=${{ env.UPXVERSION }}
83-
UPX_URL="https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-linux-${UPX_ARCH}.tar.xz"
8473
74+
UPX_URL="https://github.com/upx/upx/releases/download/v${{ env.UPX_VERSION }}/upx-${{ env.UPXVERSION }}-${{ runner.arch == 'X64' && 'amd64' || 'arm64' }}_linux.tar.xz"
8575
curl -L "$UPX_URL" -o upx.tar.xz
8676
tar -xf upx.tar.xz -C ./upx --strip-components=1
8777
chmod +x ./upx/upx
8878
89-
shell: bash
79+
shell: bash+
9080

9181
- name: Install UPX on Windows
9282
if: ${{ runner.os == 'Windows' && steps.cache-upx.outputs.cache-hit != 'true' }}

0 commit comments

Comments
 (0)