diff options
author | yvt | 2022-09-11 02:15:07 +0000 |
---|---|---|
committer | GitHub | 2022-09-11 02:15:07 +0000 |
commit | b191ecf828b3bb2a20a8848fc2a45de771741502 (patch) | |
tree | d04311788cb7b25a70ef6f6a046fa767c097395f /.github/workflows | |
parent | c2e41082e4b2e0e1dba6a980a7f09ccaad88cbd0 (diff) |
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 workflow
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release.yml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 481e7b32..e7aca89b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -133,6 +133,14 @@ jobs: command: test 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 uses: actions-rs/cargo@v1 with: @@ -140,19 +148,6 @@ jobs: command: build 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 shell: bash if: matrix.build == 'aarch64-linux' || matrix.build == 'x86_64-linux' |