From b4fe219002d861d6e47c9317a1852d90db59703e Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Tue, 19 Mar 2024 11:44:58 +0100 Subject: [PATCH] ci cgo Signed-off-by: Aldo Lacuku --- .github/workflows/integration.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 1f519b6c2..97667cc03 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -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 @@ -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: |