Skip to content

ci: Normalize job name #7384

ci: Normalize job name

ci: Normalize job name #7384

Workflow file for this run

name: CI
on: [push, pull_request]
# Cancel previous run if a new one is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
clang-format:
runs-on: ubuntu-latest
# For flakehub cache
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@v1
- name: clang-format
run: nix develop --command git clang-format --diff origin/master
build_test:
runs-on: ubuntu-latest
# For flakehub cache
permissions:
id-token: write
contents: read
continue-on-error: true
strategy:
matrix:
env:
- NAME: LLVM 16
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm16
- NAME: LLVM 17
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm17
- NAME: LLVM 18
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm18
- NAME: LLVM 19
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm19
- NAME: LLVM 20 Release
CMAKE_BUILD_TYPE: Release
NIX_TARGET: .#bpftrace-llvm20
- NAME: LLVM 20 Debug
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm20
- NAME: LLVM 20 Clang Debug
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm20
CC: clang
CXX: clang++
- NAME: Latest kernel (LLVM 20 Debug)
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm20
NIX_TARGET_KERNEL: .#kernel-6_12
- NAME: AOT (LLVM 20 Debug)
CMAKE_BUILD_TYPE: Debug
NIX_TARGET: .#bpftrace-llvm20
RUN_TESTS: 0
RUN_AOT_TESTS: 1
AOT_ALLOWLIST_FILE: .github/include/aot_allow.txt
steps:
- uses: actions/checkout@v2
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@v1
- uses: ./.github/actions/configure_kvm
- name: Load kernel modules
# nf_tables and xfs are necessary for testing kernel modules BTF support
run: |
sudo modprobe nf_tables
sudo modprobe xfs
- name: Build and test
env: ${{matrix.env}}
run: ./.github/include/ci.py
irc:
# Notify IRC of build failures on pushes only if we are running from
# the main repo. We don't want this rule to trigger from forked repos.
needs:
- build_test
if: "failure() && github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'bpftrace/bpftrace'"
runs-on: ubuntu-latest
steps:
- name: Message channel
uses: rectalogic/notify-irc@v1
with:
nickname: bpftrace-ci-bot
server: irc.oftc.net
port: 6667
tls: false
channel: "#bpftrace"
message: |
master is BROKEN at https://github.com/bpftrace/bpftrace/commit/${{github.sha}}