@@ -52,59 +52,30 @@ jobs:
52
52
retention-days : 1
53
53
54
54
build-packages :
55
- env :
56
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
57
55
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
58
56
runs-on : ${{ (inputs.arch == 'aarch64' && 'actuated-arm64-8cpu-16gb') || 'ubuntu-latest' }}
59
57
needs : [build-modern-bpf-skeleton]
60
- container : centos:7
61
58
steps :
62
59
# Always install deps before invoking checkout action, to properly perform a full clone.
63
- - name : Fix mirrors to use vault.centos.org
64
- run : |
65
- sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
66
- sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
67
- sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
68
-
69
- - name : Install scl repos
70
- run : |
71
- yum -y install centos-release-scl
72
-
73
- - name : Fix new mirrors to use vault.centos.org
74
- run : |
75
- sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
76
- sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
77
- sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
78
-
79
- - name : Fix arm64 scl repos to use correct mirror
80
- if : inputs.arch == 'aarch64'
81
- run : |
82
- sed -i 's/vault.centos.org\/centos/vault.centos.org\/altarch/g' /etc/yum.repos.d/CentOS-SCLo-scl*.repo
83
-
84
60
- name : Install build deps
85
61
run : |
86
- yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
87
- source /opt/rh/devtoolset-9/enable
88
- yum install -y wget git make m4 rpm-build elfutils-libelf-devel perl-IPC-Cmd devtoolset-9-libasan-devel devtoolset-9-libubsan-devel
62
+ sudo apt update && sudo apt install -y --no-install-recommends ca-certificates cmake curl wget build-essential git pkg-config autoconf automake libtool libelf-dev m4 rpm
89
63
90
64
- name : Checkout
91
- # It is not possible to upgrade the checkout action to versions >= v4.0.0 because of incompatibilities with centos 7's libc.
92
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
65
+ uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
93
66
94
67
- name : Download skeleton
95
68
uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
96
69
with :
97
70
name : bpf_probe_${{ inputs.arch }}.skel.h
98
71
path : /tmp
99
72
100
- - name : Install updated cmake
101
- run : |
102
- curl -L https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz \
103
- | tar --directory=/usr --strip-components=1 -xzp
73
+ - name : Install zig
74
+ if : inputs.sanitizers == false
75
+ uses : falcosecurity/libs/.github/actions/install-zig@master
104
76
105
77
- name : Prepare project
106
78
run : |
107
- source /opt/rh/devtoolset-9/enable
108
79
cmake -B build -S . \
109
80
-DCMAKE_BUILD_TYPE=${{ inputs.build_type }} \
110
81
-DUSE_BUNDLED_DEPS=On \
@@ -117,12 +88,10 @@ jobs:
117
88
118
89
- name : Build project
119
90
run : |
120
- source /opt/rh/devtoolset-9/enable
121
91
cmake --build build --target falco -j6
122
92
123
93
- name : Build packages
124
94
run : |
125
- source /opt/rh/devtoolset-9/enable
126
95
cmake --build build --target package
127
96
128
97
- name : Upload Falco tar.gz package
0 commit comments