mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-31 22:16:49 +00:00
fix(ci): fixed reusable_build_packages to properly install git
before invoking checkout action, to download full repo.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
1c3aa7a83b
commit
2af7fd9f0f
30
.github/workflows/reusable_build_packages.yaml
vendored
30
.github/workflows/reusable_build_packages.yaml
vendored
@ -17,15 +17,15 @@ jobs:
|
|||||||
runs-on: ${{ (inputs.arch == "aarch64") && fromJSON('[ "self-hosted", "linux", "ARM64" ]') || 'ubuntu-latest' }}
|
runs-on: ${{ (inputs.arch == "aarch64") && fromJSON('[ "self-hosted", "linux", "ARM64" ]') || 'ubuntu-latest' }}
|
||||||
container: fedora:latest
|
container: fedora:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: |
|
||||||
|
dnf install -y bpftool ca-certificates cmake make automake gcc gcc-c++ kernel-devel clang git pkg-config autoconf automake libbpf-devel
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
dnf install -y bpftool ca-certificates cmake make automake gcc gcc-c++ kernel-devel clang git pkg-config autoconf automake libbpf-devel
|
|
||||||
|
|
||||||
- name: Build modern BPF skeleton
|
- name: Build modern BPF skeleton
|
||||||
run: |
|
run: |
|
||||||
mkdir skeleton-build && cd skeleton-build
|
mkdir skeleton-build && cd skeleton-build
|
||||||
@ -47,6 +47,13 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.store_version.outputs.version }}
|
version: ${{ steps.store_version.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: |
|
||||||
|
yum -y install centos-release-scl
|
||||||
|
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
|
||||||
|
source /opt/rh/devtoolset-9/enable
|
||||||
|
yum install -y git wget make m4 rpm-build
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@ -58,13 +65,6 @@ jobs:
|
|||||||
name: bpf_probe_${{ inputs.arch }}.skel.h
|
name: bpf_probe_${{ inputs.arch }}.skel.h
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
yum -y install centos-release-scl
|
|
||||||
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
|
|
||||||
source /opt/rh/devtoolset-9/enable
|
|
||||||
yum install -y git wget make m4 rpm-build
|
|
||||||
|
|
||||||
- name: Install updated cmake
|
- name: Install updated cmake
|
||||||
run: |
|
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
|
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
|
||||||
@ -132,14 +132,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine:3.17
|
container: alpine:3.17
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: |
|
||||||
|
apk add g++ gcc cmake make git bash perl linux-headers autoconf automake m4 libtool elfutils-dev libelf-static patch binutils bpftool clang
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
apk add g++ gcc cmake make git bash perl linux-headers autoconf automake m4 libtool elfutils-dev libelf-static patch binutils bpftool clang
|
|
||||||
|
|
||||||
- name: Prepare project
|
- name: Prepare project
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user