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 93
93
codesign : ' -'
94
94
codesign-prefix : ' com.example.'
95
95
codesign-options : ' runtime'
96
+ upx : true
96
97
- name : Check action outputs
97
98
run : |
98
99
printf 'outputs.archive should not be empty\n'
@@ -115,3 +116,13 @@ jobs:
115
116
116
117
printf 'outputs.md5 should be a file\n'
117
118
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