From 35cb33b006ea0071b2c3a88cdb8c531c44189119 Mon Sep 17 00:00:00 2001 From: David Ko Date: Sun, 16 Apr 2023 08:14:32 +0800 Subject: [PATCH] fix(go): disable cgo ref: innobead/kubefire#75, innobead/kubefire#74 --- .github/workflows/build.yaml | 2 +- .github/workflows/release-image.yaml | 2 +- .github/workflows/release-kernel.yaml | 2 +- .github/workflows/release.yaml | 2 +- Makefile | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 67a8318..199850b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/release-image.yaml b/.github/workflows/release-image.yaml index c881ff9..a48aa60 100644 --- a/.github/workflows/release-image.yaml +++ b/.github/workflows/release-image.yaml @@ -8,7 +8,7 @@ on: jobs: release: name: Release images - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [] steps: - name: Checkout code diff --git a/.github/workflows/release-kernel.yaml b/.github/workflows/release-kernel.yaml index 708e6e9..6c591de 100644 --- a/.github/workflows/release-kernel.yaml +++ b/.github/workflows/release-kernel.yaml @@ -7,7 +7,7 @@ on: jobs: release: name: Release kernel images - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [] steps: - name: Checkout code diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bdae0be..0f635ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ on: jobs: release: name: Release - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [] steps: - name: Checkout code diff --git a/Makefile b/Makefile index 60dee47..3e79fa8 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,8 @@ env: ## Prepare build env .PHONY: build build: env format ## Build executables (linux/amd64 supported only) mkdir -p $(BUILD_DIR) - GOOS=linux GOARCH=amd64 go build -o $(BUILD_DIR)/kubefire-linux-amd64 $(GO_LDFLAGS) ./cmd/kubefire - GOOS=linux GOARCH=arm64 go build -o $(BUILD_DIR)/kubefire-linux-arm64 $(GO_LDFLAGS) ./cmd/kubefire + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/kubefire-linux-amd64 $(GO_LDFLAGS) ./cmd/kubefire + GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/kubefire-linux-arm64 $(GO_LDFLAGS) ./cmd/kubefire .PHONY: build-cni build-cni: ## Build CNI executables