From 2978e3d8c6170f88b90d0f3b432c9a49eeb412c4 Mon Sep 17 00:00:00 2001 From: UjuiUjuMandan <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Sat, 28 Dec 2024 03:08:00 +0000 Subject: [PATCH] Revert "remove '-s -w'" This reverts commit ce708f762c777c5db00a9499e3b3d1b31b247549. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf88381ff..aeb40c30e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,7 +88,7 @@ jobs: - name: Install gomobile if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true' run: | - CGO_ENABLED=0 go install -trimpath github.com/sagernet/gomobile/cmd/gomobile@v0.1.4 + CGO_ENABLED=0 go install -trimpath -ldflags="-w -s" github.com/sagernet/gomobile/cmd/gomobile@v0.1.4 echo "$(go env GOPATH)/bin" >> $GITHUB_PATH env: ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} @@ -102,7 +102,7 @@ jobs: cd ${{ github.workspace }}/build/AndroidLibXrayLite gomobile init go mod tidy -v - gomobile bind -trimpath -buildvcs=false -v -androidapi 21 -ldflags='-buildid=' ./ + gomobile bind -trimpath -buildvcs=false -v -androidapi 21 -ldflags='-s -w -buildid=' ./ env: ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}