Skip to content

Commit 8c0065f

Browse files
committed
Add test to CI
1 parent ee6f91a commit 8c0065f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
codesign: '-'
9494
codesign-prefix: 'com.example.'
9595
codesign-options: 'runtime'
96+
upx: true
9697
- name: Check action outputs
9798
run: |
9899
printf 'outputs.archive should not be empty\n'
@@ -115,3 +116,13 @@ jobs:
115116
116117
printf 'outputs.md5 should be a file\n'
117118
test -f "${{ steps.upload-rust-binary-action.outputs.md5 }}"
119+
- name: Check UPX
120+
if: ! startsWith(matrix.os, 'macos-')
121+
run: |
122+
printf 'UPX should be installed\n'
123+
test -n "$(command -v upx)"
124+
125+
printf 'binary should be compressed with UPX\n'
126+
target_dir=$(dirname "${{ steps.upload-rust-binary-action.outputs.tar }}")
127+
already_packed=$(upx "$target_dir/test-crate" | grep AlreadyPackedException)
128+
test -n "$already_packed"

0 commit comments

Comments
 (0)