Decave PR run #1
Workflow file for this run
This file contains 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-scheds | |
run-name: ${{ github.actor }} PR run | |
on: [pull_request] | |
jobs: | |
build-schedulers: | |
runs-on: ubuntu-20.04 | |
steps: | |
### DOWNLOAD AND INSTALL DEPENDENCIES ### | |
# Download dependencies packaged by Ubuntu | |
- run: sudo apt update | |
- run: sudo apt install -y cmake cargo elfutils libelf-dev linux-headers-generic ninja-build | |
# bpftool | |
- run: git clone --recurse-submodules --branch v7.3.0 https://github.com/libbpf/bpftool.git | |
- run: make -j -C bpftool/src | |
- run: make -j -C bpftool/src install | |
# zstd | |
- run: git clone --branch zstd-0.4.2 https://github.com/facebook/zstd.git | |
- run: make -j -C zstd install | |
# asm headers | |
- run: sudo ln -s /usr/include/asm-generic /usr/include/asm | |
# clang 17 | |
- run: wget https://apt.llvm.org/llvm.sh | |
- run: chmod +x llvm.sh | |
- run: sudo ./llvm.sh all | |
- run: sudo apt install -y clang-17 lldb-17 lld-17 | |
- run: ln -s /usr/bin/clang-17 /usr/bin/clang | |
- uses: actions/checkout@v4 | |
# libbpf | |
- run: git clone --recurse-submodules --branch v1.3.0 https://github.com/libbpf/libbpf.git | |
- run: make -j -C libbpf/src | |
- run: make -j -C libbpf/src install | |
# meson | |
- run: pip install meson | |
### END DEPENDENCIES ### | |
# The actual build: | |
- run: meson setup build -Dlibbpf_a=`pwd`/libbpf/src/libbpf.a --prefix ~ | |
- run: meson compile -C build |