mirror of https://github.com/helix-editor/helix
Strip release binary by setting `profile.release.strip` in a pre-build step (#3780)
* chore(ci): remove the strip step from the release CI workflow * chore(ci): set `profile.release.strip = true` in the release CI workflowpull/3794/head
parent
c2e41082e4
commit
b191ecf828
|
@ -133,6 +133,14 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: --release --locked --target ${{ matrix.target }} --workspace
|
args: --release --locked --target ${{ matrix.target }} --workspace
|
||||||
|
|
||||||
|
- name: Set profile.release.strip = true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cat >> .cargo/config.toml <<EOF
|
||||||
|
[profile.release]
|
||||||
|
strip = true
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -140,19 +148,6 @@ jobs:
|
||||||
command: build
|
command: build
|
||||||
args: --release --locked --target ${{ matrix.target }}
|
args: --release --locked --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Strip release binary (linux and macos)
|
|
||||||
if: matrix.build == 'x86_64-linux' || endsWith(matrix.build, 'macos')
|
|
||||||
run: strip "target/${{ matrix.target }}/release/hx"
|
|
||||||
|
|
||||||
- name: Strip release binary (arm)
|
|
||||||
if: matrix.build == 'aarch64-linux'
|
|
||||||
run: |
|
|
||||||
docker run --rm -v \
|
|
||||||
"$PWD/target:/target:Z" \
|
|
||||||
rustembedded/cross:${{ matrix.target }} \
|
|
||||||
aarch64-linux-gnu-strip \
|
|
||||||
/target/${{ matrix.target }}/release/hx
|
|
||||||
|
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.build == 'aarch64-linux' || matrix.build == 'x86_64-linux'
|
if: matrix.build == 'aarch64-linux' || matrix.build == 'x86_64-linux'
|
||||||
|
|
Loading…
Reference in New Issue