Skip to content

Commit

Permalink
Try to fix test for x86_64-pc-windows-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Dec 27, 2024
1 parent 6968098 commit 50ba508
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || matrix.build_tool == 'cargo') }}
upx: ${{ startsWith(matrix.os, 'ubuntu-') && (matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo') }}
- name: Check action outputs
run: |
printf 'outputs.archive should not be empty\n'
Expand All @@ -125,13 +125,16 @@ jobs:
- name: Check UPX
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_file="test-crate"
if [[ "${{ matrix.target != 'x86_64-pc-windows-gnu' }}"]]; then
target_file="$target_file.exe"
fi
target_dir="./test-crate/target/release"
tar -C "$target_dir" -xf "${{ steps.upload-rust-binary-action.outputs.tar }}"
test -n "$(file "$target_dir/test-crate" | grep 'no section header')"
test -n "$(file "$target_dir/$target_file" | grep 'no section header')"
- name: Check b2 output
if: ${{ contains(matrix.checksums || 'b2,sha256,sha512,sha1,md5', 'b2') }}
run: |
Expand Down

0 comments on commit 50ba508

Please sign in to comment.