Skip to content

Commit 4aba213

Browse files
committed
Try x86_64-pc-windows-gnu
1 parent 6968098 commit 4aba213

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
codesign: '-'
100100
codesign-prefix: 'com.example.'
101101
codesign-options: 'runtime'
102-
upx: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.target != 'x86_64-pc-windows-gnu' && (matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo') }}
102+
upx: ${{ startsWith(matrix.os, 'ubuntu-') && (matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo') }}
103103
- name: Check action outputs
104104
run: |
105105
printf 'outputs.archive should not be empty\n'
@@ -125,13 +125,14 @@ jobs:
125125
- name: Check UPX
126126
if: |
127127
startsWith(matrix.os, 'ubuntu-') &&
128-
matrix.target != 'x86_64-pc-windows-gnu' &&
129128
(matrix.target != 'aarch64-unknown-linux-gnu' || matrix.build_tool == 'cargo')
130129
run: |
131130
printf 'binary should be compressed with UPX\n'
132131
target_dir="./test-crate/target/release"
133132
tar -C "$target_dir" -xf "${{ steps.upload-rust-binary-action.outputs.tar }}"
134-
test -n "$(file "$target_dir/test-crate" | grep 'no section header')"
133+
target_file="$target_dir/test-crate"
134+
[ "${{ matrix.target }}" == "x86_64-pc-windows-gnu" ] && target_file="$target_file.exe"
135+
test -n "$(file "$target_file" | grep 'no section header')"
135136
- name: Check b2 output
136137
if: ${{ contains(matrix.checksums || 'b2,sha256,sha512,sha1,md5', 'b2') }}
137138
run: |

0 commit comments

Comments
 (0)