Skip to content

Commit

Permalink
github: strip lxc and lxd-migrate native binaries
Browse files Browse the repository at this point in the history
Non-native binaries cannot be strip'ed:

$ strip -s bin/lxc.* bin/lxd-migrate.*
strip: Unable to recognise the format of the input file `bin/lxc.aarch64'
strip: Unable to recognise the format of the input file `bin/lxd-migrate.aarch64'

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Feb 13, 2024
1 parent 8e50a44 commit 2b98753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ jobs:
GOARCH=amd64 go build -o trimpath -o bin/lxd-migrate.x86_64 ./lxd-migrate
GOARCH=arm64 go build -o trimpath -o bin/lxd-migrate.aarch64 ./lxd-migrate
- name: Strip lxc and lxd-migrate native binaries
if: runner.os != 'macOS' # macOS doesn't have strip
run: strip -s bin/lx*.x86_64 # non-native binaries cannot be strip'ed

- name: Unit tests (client)
env:
CGO_ENABLED: 0
Expand Down

0 comments on commit 2b98753

Please sign in to comment.