From 5c8b49b1c8d1a3374b8d7ac5f535fe3b8cd7b777 Mon Sep 17 00:00:00 2001 From: yvt Date: Fri, 9 Sep 2022 09:41:34 +0900 Subject: [PATCH 1/2] chore(ci): remove the strip step from the release CI workflow --- .github/workflows/release.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 481e7b3279b0..4d8bf742e22b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -140,19 +140,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' From 321fb4edefb81bb3bdf14cb8eb0f065a65ff5983 Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 10 Sep 2022 17:02:03 +0900 Subject: [PATCH 2/2] chore(ci): set `profile.release.strip = true` in the release CI workflow --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d8bf742e22b..e7aca89bb72a 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 <