Skip to content

Commit

Permalink
ci: disable CGO for linux setup-go actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed May 12, 2023
1 parent 81097c0 commit d8fdde2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/external_runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ runs:
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
env:
CGO_ENABLED: "0"

- name: Run external Job
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/component_linux_harvest_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
env:
CGO_ENABLED: "0"

- name: Setup node
run: sudo apt install musl-dev
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/component_linux_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
env:
CGO_ENABLED: "0"

- name: Running linter
run: make lint
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/component_linux_proxy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
env:
CGO_ENABLED: "0"

- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/component_linux_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
env:
CGO_ENABLED: "0"

- name: Running databind unit/integration tests
run: make databind-test
Expand Down

0 comments on commit d8fdde2

Please sign in to comment.