feat: add archs flag #96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4 | |
| - name: Get Go version from Makefile | |
| id: get_go_version | |
| run: | | |
| go_version=$(make go-version) | |
| - name: Set up Go | |
| uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # ratchet:actions/setup-go@v5 | |
| with: | |
| go-version: ${{ steps.get_go_version.outputs.go_version }} | |
| - name: Install BCC Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libbpf-dev # Install libbpf dependencies | |
| sudo apt install -y libseccomp-dev # Install Seccomp dependencies | |
| - name: Build and Test | |
| run: | | |
| make build-gh | |
| - name: Build Docker image | |
| run: make build-docker | |