diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 1f519b6c2..5428b98d4 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -13,14 +13,17 @@ jobs: matrix: goos: - linux - - darwin - - windows goarch: - arm64 - amd64 exclude: - goarch: arm64 goos: windows + include: + - goarch: arm64 + cc: aarch64-linux-gnu-gcc + - goarch: amd64 + cc: gcc steps: - name: Checkout commit uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 @@ -33,13 +36,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 }} . + go build -ldflags="-s -w" -buildmode=c-shared -o falcoctl-${{ matrix.goos }}-${{ matrix.goarch }} . env: - CGO_ENABLED: 0 + CGO_ENABLED: 1 GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} + CC: ${{ matrix.cc }} - name: Create Archives run: |