wip #896
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: CI Build | |
on: | |
pull_request: | |
branches: [dev] | |
push: | |
branches: [dev] | |
workflow_dispatch: | |
jobs: | |
build-sysdig-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: | |
- linux/amd64 | |
- linux/arm64 | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Install deps ⛓️ | |
run: | | |
sudo apt update && sudo apt install -y --no-install-recommends ninja-build curl ca-certificates build-essential git clang llvm pkg-config autoconf automake libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc libgtest-dev libprotobuf-dev cmake | |
DIR=$(pwd) | |
cd /tmp | |
git clone https://github.com/libbpf/bpftool.git --branch v7.3.0 --single-branch | |
cd bpftool | |
git submodule update --init | |
cd src | |
sudo make install | |
cd ${DIR} | |
- name: Checkout Sysdig | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install zig | |
uses: ./.github/actions/install-zig | |
- name: Build Sysdig | |
run: | | |
cmake -DUSE_BUNDLED_DEPS=ON -DBUILD_BPF=OFF -DBUILD_SYSDIG_MODERN_BPF=OFF -DBUILD_DRIVER=OFF -DCMAKE_BUILD_TYPE=Release -S . -B build | |
cd build | |
make -j $(nproc) package | |
- name: Upload rpm package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sysdig-dev-$(${{ matrix.platform }} | sed -e 's|/||g').rpm | |
path: | | |
build/sysdig-*.rpm | |
- name: Upload deb package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sysdig-dev-linux-$(${{ matrix.platform }} | sed -e 's|/||g').deb | |
path: | | |
build/sysdig-*.deb | |
- name: Upload tar.gz package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sysdig-dev-linux-$(${{ matrix.platform }} | sed -e 's|/||g').tar.gz | |
path: | | |
build/sysdig-*.tar.gz | |
build-sysdig-others-amd64: | |
name: build-sysdig-other-amd64 | |
strategy: | |
matrix: | |
os: [windows-latest, macos-13] | |
include: | |
- os: windows-latest | |
artifact_name: win | |
artifact_ext: exe | |
- os: macos-13 | |
artifact_name: osx | |
artifact_ext: dmg | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Sysdig | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
mkdir -p build | |
cd build && cmake -Wno-dev .. | |
cmake --build . --target package --config Release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sysdig-dev-${{ matrix.artifact_name }}-x86_64.${{ matrix.artifact_ext }} | |
path: | | |
build/sysdig-*.${{ matrix.artifact_ext }} | |
build-sysdig-others-arm64: | |
name: build-sysdig-other-arm64 | |
strategy: | |
matrix: | |
os: [macos-14] | |
include: | |
- os: macos-14 | |
artifact_name: osx | |
artifact_ext: dmg | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Sysdig | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
mkdir -p build | |
cd build && cmake -Wno-dev .. | |
cmake --build . --target package --config Release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sysdig-dev-${{ matrix.artifact_name }}-arm64.${{ matrix.artifact_ext }} | |
path: | | |
build/sysdig-*.${{ matrix.artifact_ext }} |