Skip to content

Commit

Permalink
fix(go): disable cgo
Browse files Browse the repository at this point in the history
ref: #75, #74
  • Loading branch information
innobead committed Apr 16, 2023
1 parent ede94e6 commit 35cb33b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: Release images
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: []
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-kernel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: Release
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: []
steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35cb33b

Please sign in to comment.