Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Dec 11, 2024
1 parent 417f2ad commit b59bcb1
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,23 @@ jobs:
platform:
- linux/amd64
- linux/arm64
container:
image: debian:buster

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Install deps ⛓️
- name: Install deps
run: |

Check failure on line 24 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2086:info:9:4: Double quote to prevent globbing and word splitting [shellcheck] Raw Output: .github/workflows/ci.yaml:24:9: shellcheck reported issue in this script: SC2086:info:9:4: Double quote to prevent globbing and word splitting [shellcheck]
apt update && 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
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 ninja-build
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
make install
sudo make install
cd ${DIR}
- name: Install a recent version of CMake ⛓️
run: |
curl -L -o /tmp/cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz
gzip -d /tmp/cmake.tar.gz
tar -xpf /tmp/cmake.tar --directory=/tmp
cp -R /tmp/cmake-3.22.5-linux-$(uname -m)/* /usr
rm -rf /tmp/cmake-3.22.5-linux-$(uname -m)/
- name: Checkout Sysdig
uses: actions/checkout@v4
with:
Expand All @@ -52,30 +42,34 @@ jobs:

- 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
cmake -DUSE_BUNDLED_DEPS=ON -DBUILD_BPF=OFF -DBUILD_SYSDIG_MODERN_BPF=OFF -DBUILD_DRIVER=OFF -DCMAKE_BUILD_TYPE=Release -S . -B build -G Ninja
cmake --build build --target package --config Release
- name: Set artifact name
id: artifact_name
run: |

Check failure on line 50 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2086:info:1:77: Double quote to prevent globbing and word splitting [shellcheck] Raw Output: .github/workflows/ci.yaml:50:9: shellcheck reported issue in this script: SC2086:info:1:77: Double quote to prevent globbing and word splitting [shellcheck]
echo "name=sysdig-dev-$(echo ${{ matrix.platform }} | sed -e 's|/|-|g')" >> $GITHUB_OUTPUT
- name: Upload rpm package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sysdig-dev-$(${{ matrix.arch }} | sed -e 's|/||g').rpm
name: ${{ steps.artifact_name.outputs.name }}.rpm
path: |
build/release/sysdig-*.rpm
build/sysdig-*.rpm
- name: Upload deb package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sysdig-dev-linux-$(${{ matrix.arch }} | sed -e 's|/||g').deb
name: ${{ steps.artifact_name.outputs.name }}.deb
path: |
build/release/sysdig-*.deb
build/sysdig-*.deb
- name: Upload tar.gz package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sysdig-dev-linux-$(${{ matrix.arch }} | sed -e 's|/||g').tar.gz
name: ${{ steps.artifact_name.outputs.name }}.tar.gz
path: |
build/release/sysdig-*.tar.gz
build/sysdig-*.tar.gz
build-sysdig-others-amd64:
name: build-sysdig-other-amd64
Expand All @@ -95,9 +89,8 @@ jobs:
uses: actions/checkout@v4
- name: Build
run: |
mkdir -p build
cd build && cmake -Wno-dev ..
cmake --build . --target package --config Release
cmake -Wno-dev -S . -B build
cmake --build build --target package --config Release
- name: Upload artifacts
uses: actions/upload-artifact@v3

Check failure on line 95 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 the runner of "actions/upload-artifact@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: .github/workflows/ci.yaml:95:15: the runner of "actions/upload-artifact@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
Expand All @@ -120,9 +113,8 @@ jobs:
uses: actions/checkout@v4
- name: Build
run: |
mkdir -p build
cd build && cmake -Wno-dev ..
cmake --build . --target package --config Release
cmake -Wno-dev -S . -B build
cmake --build build --target package --config Release
- name: Upload artifacts
uses: actions/upload-artifact@v3

Check failure on line 119 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 the runner of "actions/upload-artifact@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: .github/workflows/ci.yaml:119:15: the runner of "actions/upload-artifact@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
Expand Down

0 comments on commit b59bcb1

Please sign in to comment.