diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05cd587..a105d5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: codesign: '-' codesign-prefix: 'com.example.' codesign-options: 'runtime' - upx: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.target != 'x86_64-pc-windows-gnu' && matrix.target != 'aarch64-unknown-linux-gnu' }} + upx: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.target != 'x86_64-pc-windows-gnu' && (matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo') }} - name: Check action outputs run: | printf 'outputs.archive should not be empty\n' @@ -123,7 +123,10 @@ jobs: printf 'outputs.md5 should be a file\n' test -f "${{ steps.upload-rust-binary-action.outputs.md5 }}" - name: Check UPX - if: startsWith(matrix.os, 'ubuntu-') && matrix.target != 'x86_64-pc-windows-gnu' && matrix.target != 'aarch64-unknown-linux-gnu' + if: | + startsWith(matrix.os, 'ubuntu-') && + matrix.target != 'x86_64-pc-windows-gnu' && + (matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo') run: | printf 'binary should be compressed with UPX\n' target_dir="./test-crate/target/release"