Skip to content

Musl support

Musl support #10297

Workflow file for this run

name: Build
on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
# renovate: datasource=go depName=github.com/florianl/bluebox
BLUEBOX_VERSION: v0.0.2
jobs:
skip-check:
name: Skip check
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip-check.outputs.should_skip }}
permissions:
actions: write
contents: read
steps:
- id: skip-check
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1
with:
do_not_skip: '["schedule", "workflow_dispatch"]'
paths: |-
[
"**.go",
".github/workflows/build.yml",
".go-version",
"3rdparty",
"Makefile",
"bpf/**",
"go.mod",
"go.sum",
"kerneltest/**",
"testdata/**"
]
skip_after_successful_duplicate: false
go-build-test:
name: Go Build
runs-on: ubuntu-latest
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
steps:
- name: Check out the code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
# Installs gofumpt, golangci-lint, and govulncheck.
- name: Set up environment
run: ./env.sh
- name: Set up Clang
uses: KyleMayes/install-llvm-action@be40c5af3a4adc3e4a03199995ab73aa37536712 # v1.9.0
with:
version: "14"
- name: clang version
run: |
clang -v
ld --version
ld.lld --version
- name: Install clang-format
run: sudo apt-get install clang-format
- name: Show clang-format version
run: clang-format --version
- name: Install libbpf dependencies
run: |
sudo apt-get update -y
sudo apt-get install -yq libelf-dev zlib1g-dev
- name: Initialize and update git submodules
run: git submodule init && git submodule update
- name: Install Go dependencies
run: make go/deps
- name: Build libbpf
run: make libbpf
- name: Build BPF
run: make bpf
- name: Build
run: make build
- name: Show kernel version
run: uname -a
- name: Show Go version
run: |
which go
go version
go env
echo $PATH
- name: Format
run: make format-check
- name: Lint
run: make go/lint