File tree 1 file changed +8
-13
lines changed
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -133,26 +133,21 @@ jobs:
133
133
command : test
134
134
args : --release --locked --target ${{ matrix.target }} --workspace
135
135
136
+ - name : Set profile.release.strip = true
137
+ shell : bash
138
+ run : |
139
+ cat >> .cargo/config.toml <<EOF
140
+ [profile.release]
141
+ strip = true
142
+ EOF
143
+
136
144
- name : Build release binary
137
145
uses : actions-rs/cargo@v1
138
146
with :
139
147
use-cross : ${{ matrix.cross }}
140
148
command : build
141
149
args : --release --locked --target ${{ matrix.target }}
142
150
143
- - name : Strip release binary (linux and macos)
144
- if : matrix.build == 'x86_64-linux' || endsWith(matrix.build, 'macos')
145
- run : strip "target/${{ matrix.target }}/release/hx"
146
-
147
- - name : Strip release binary (arm)
148
- if : matrix.build == 'aarch64-linux'
149
- run : |
150
- docker run --rm -v \
151
- "$PWD/target:/target:Z" \
152
- rustembedded/cross:${{ matrix.target }} \
153
- aarch64-linux-gnu-strip \
154
- /target/${{ matrix.target }}/release/hx
155
-
156
151
- name : Build AppImage
157
152
shell : bash
158
153
if : matrix.build == 'aarch64-linux' || matrix.build == 'x86_64-linux'
You can’t perform that action at this time.
0 commit comments