diff --git a/.github/workflows/cross_compile.yml b/.github/workflows/cross_compile.yml index 62aac0ae..eeb57fce 100644 --- a/.github/workflows/cross_compile.yml +++ b/.github/workflows/cross_compile.yml @@ -100,14 +100,19 @@ jobs: go build -ldflags="-s -w" -o output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }} fi - - name: Compress executable files with UPX + - name: Compress executable files with UPX (except for gensokyo-android-arm64) run: | sudo apt-get update sudo apt-get install -y upx if [[ "${{ matrix.os }}" == *"windows"* ]]; then - upx --best --lzma output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }}.exe + FILENAME="output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }}.exe" else - upx --best --lzma output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }} + FILENAME="output/gensokyo-${{ matrix.os }}-${{ matrix.goarch }}" + fi + if [[ "${{ matrix.os }}" == "android" && "${{ matrix.goarch }}" == "arm64" ]]; then + echo "Skipping UPX compression for $FILENAME" + else + upx --best --lzma "$FILENAME" fi - name: Upload artifacts