File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments