Skip to content

Commit 35cb33b

Browse files
committed
fix(go): disable cgo
ref: #75, #74
1 parent ede94e6 commit 35cb33b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2

.github/workflows/release-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: Release images
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
needs: []
1313
steps:
1414
- name: Checkout code

.github/workflows/release-kernel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
release:
99
name: Release kernel images
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
1111
needs: []
1212
steps:
1313
- name: Checkout code

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: Release
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
needs: []
1313
steps:
1414
- name: Checkout code

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ env: ## Prepare build env
6363
.PHONY: build
6464
build: env format ## Build executables (linux/amd64 supported only)
6565
mkdir -p $(BUILD_DIR)
66-
GOOS=linux GOARCH=amd64 go build -o $(BUILD_DIR)/kubefire-linux-amd64 $(GO_LDFLAGS) ./cmd/kubefire
67-
GOOS=linux GOARCH=arm64 go build -o $(BUILD_DIR)/kubefire-linux-arm64 $(GO_LDFLAGS) ./cmd/kubefire
66+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/kubefire-linux-amd64 $(GO_LDFLAGS) ./cmd/kubefire
67+
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/kubefire-linux-arm64 $(GO_LDFLAGS) ./cmd/kubefire
6868

6969
.PHONY: build-cni
7070
build-cni: ## Build CNI executables

0 commit comments

Comments
 (0)