Skip to content

Commit

Permalink
ci cgo
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku committed Mar 19, 2024
1 parent edbcdde commit b4fe219
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
exclude:
- goarch: arm64
goos: windows
include:
- goarch: arm64
goos: linux
cc: aarch64-linux-gnu-gcc
cgo: 1
fail-fast: false
steps:
- name: Checkout commit
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand All @@ -33,13 +39,17 @@ jobs:
go-version: '1.21'
check-latest: true

- name: Install gcc for cross-compiling
run: sudo apt update && sudo apt install gcc-aarch64-linux-gnu

- name: Build Falcoctl
run: >
go build -ldflags="-s -w" -o falcoctl-${{ matrix.goos }}-${{ matrix.goarch }} .
env:
CGO_ENABLED: 0
CGO_ENABLED: ${{ matrix.cgo }}
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CC: ${{ matrix.cc }}

- name: Create Archives
run: |
Expand Down

0 comments on commit b4fe219

Please sign in to comment.