Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(ci): semplify ci #2137

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-drivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@

steps:
- name: Checkout Sysdig
uses: actions/checkout@v2

Check failure on line 40 in .github/workflows/build-drivers.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/build-drivers.yaml:40:15: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]

- name: Download DriverKit
run: |
wget -O driverkit.tar.gz https://github.com/falcosecurity/driverkit/releases/download/v${{ env.DRIVERKIT_VERSION }}/driverkit_${{ env.DRIVERKIT_VERSION }}_linux_amd64.tar.gz && \
wget -O driverkit.tar.gz https://github.com/falcosecurity/driverkit/releases/download/v${{ env.DRIVERKIT_VERSION }}/driverkit_${{ env.DRIVERKIT_VERSION }}_linux_${{ matrix.name }}.tar.gz && \
tar -xvf driverkit.tar.gz && \
rm -rf driverkit.tar.gz && \
chmod +x ./driverkit

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
47 changes: 15 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
make install && \
cd ../.. && \
rm -fr bpftool && \
curl -LO https://ziglang.org/builds/zig-linux-$(uname -m)-${ZIG_VERSION}.tar.xz && \
tar -xaf zig-linux-$(uname -m)-${ZIG_VERSION}.tar.xz && \
rm -v zig-linux-$(uname -m)-${ZIG_VERSION}.tar.xz && \
cd zig-linux-$(uname -m)-${ZIG_VERSION} && \
curl -LO https://ziglang.org/builds/zig-linux-"$(uname -m)"-"${ZIG_VERSION}".tar.xz && \
tar -xaf zig-linux-"$(uname -m)"-"${ZIG_VERSION}".tar.xz && \
rm -v zig-linux-"$(uname -m)"-"${ZIG_VERSION}".tar.xz && \
cd zig-linux-"$(uname -m)"-"${ZIG_VERSION}" && \
cp -v zig /usr/bin && \
find lib -exec cp --parents {} /usr/ \; && \
cd .. && \
Expand Down Expand Up @@ -107,40 +107,24 @@ jobs:
path: |
build/sysdig-*.tar.gz

build-sysdig-others-amd64:
name: build-sysdig-other-amd64
build-sysdig-others:
name: build-sysdig-${{ matrix.os }}-${{ matrix.arch }}
strategy:
matrix:
os: [windows-latest, macos-13]
os: [windows-latest, macos-13, macos-14]
include:
- os: windows-latest
artifact_name: win
artifact_ext: exe
arch: x86_64
- os: macos-13
artifact_name: osx
artifact_ext: dmg
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Sysdig
uses: actions/checkout@v4
- name: Build
run: |
cmake -Wno-dev -S . -B build
cmake --build build --target package --config Release
- name: Upload artifacts
uses: actions/upload-artifact@v4
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:
arch: x86_64
- os: macos-14
artifact_name: osx
artifact_ext: dmg
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Sysdig
Expand All @@ -149,9 +133,8 @@ jobs:
run: |
cmake -Wno-dev -S . -B build
cmake --build build --target package --config Release
- name: Upload artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: sysdig-dev-${{ matrix.artifact_name }}-arm64.${{ matrix.artifact_ext }}
path: |
build/sysdig-*.${{ matrix.artifact_ext }}
name: sysdig-dev-${{ matrix.artifact_name }}-${{ matrix.arch }}
path: build/sysdig-*.${{ matrix.artifact_ext }}
Loading