Skip to content

Commit

Permalink
Merge pull request #12883 from simondeziel/smaller-clients
Browse files Browse the repository at this point in the history
Smaller lxc and lxd-migrate binaries
  • Loading branch information
tomponline authored Feb 13, 2024
2 parents d8c3505 + 2b98753 commit fbd3bfc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,23 +386,27 @@ jobs:
CGO_ENABLED: 0
GOARCH: amd64
run: |
go build -o bin/lxc.x86_64 ./lxc
go build -o trimpath -o bin/lxc.x86_64 ./lxc
- name: Build static lxc (aarch64)
env:
CGO_ENABLED: 0
GOARCH: arm64
run: |
go build -o bin/lxc.aarch64 ./lxc
go build -o trimpath -o bin/lxc.aarch64 ./lxc
- name: Build static lxd-migrate
if: runner.os == 'Linux'
env:
CGO_ENABLED: 0
run: |
set -eux
GOARCH=amd64 go build -o bin/lxd-migrate.x86_64 ./lxd-migrate
GOARCH=arm64 go build -o bin/lxd-migrate.aarch64 ./lxd-migrate
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:
Expand Down

0 comments on commit fbd3bfc

Please sign in to comment.