From 19399b236801e5bc44b0cb31df909252c999ac58 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 12 Oct 2023 10:49:24 -0400 Subject: [PATCH 1/2] Revert "github: build static lxc and lxd-migrate bins for arm64" This reverts commit 83262569836e8eb6980f5d4b68a25bbbbea4a5de as this was taken from Incus repo without proper attribution to the original author: Stephane Graber Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c5dca2e20b41..2da0825a7d02 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -306,27 +306,18 @@ jobs: run: | mkdir bin - - name: Build static lxc (x86_64) + - name: Build static lxc env: CGO_ENABLED: 0 - GOARCH: amd64 run: | - go build -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 bin ./lxc - name: Build static lxd-migrate if: runner.os == 'Linux' env: CGO_ENABLED: 0 run: | - GOARCH=amd64 go build -o bin/lxd-migrate.x86_64 ./lxd-migrate - GOARCH=arm64 go build -o bin/lxd-migrate.aarch64 ./lxd-migrate + go build -o bin ./lxd-migrate - name: Unit tests (client) env: From 380e4db2ed404ea4f812fe84c0f967212388dcc9 Mon Sep 17 00:00:00 2001 From: Stephane Graber Date: Mon, 9 Oct 2023 23:29:39 -0400 Subject: [PATCH 2/2] github: build static lxc and lxd-migrate bins for arm64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #12361 This commit was taken from Incus repo and now includes proper attribution to the original author: Stephane Graber Signed-off-by: Stéphane Graber Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2da0825a7d02..c5dca2e20b41 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -306,18 +306,27 @@ jobs: run: | mkdir bin - - name: Build static lxc + - name: Build static lxc (x86_64) env: CGO_ENABLED: 0 + GOARCH: amd64 run: | - go build -o bin ./lxc + go build -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 - name: Build static lxd-migrate if: runner.os == 'Linux' env: CGO_ENABLED: 0 run: | - go build -o bin ./lxd-migrate + GOARCH=amd64 go build -o bin/lxd-migrate.x86_64 ./lxd-migrate + GOARCH=arm64 go build -o bin/lxd-migrate.aarch64 ./lxd-migrate - name: Unit tests (client) env: