File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' }}
You can’t perform that action at this time.
0 commit comments