Skip to content

Commit

Permalink
ci with cg
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 13fa522
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 13fa522

Please sign in to comment.