Skip to content

Commit 5e3e7b3

Browse files
committed
github-ci: add ci test using CARGO and RUSTC vars
This uses Ubuntu 24.04 without the default rust packages installed, so requires the use of RUSTC and CARGO env vars to be set.
1 parent ed41ff9 commit 5e3e7b3

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/builds.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,81 @@ jobs:
13361336
- run: make install-headers
13371337
- run: make install-library
13381338

1339+
ubuntu-24-04-rust-vars:
1340+
name: Ubuntu 24.04 (RUSTC+CARGO vars)
1341+
runs-on: ubuntu-latest
1342+
container: ubuntu:24.04
1343+
needs: [prepare-deps]
1344+
steps:
1345+
- name: Cache ~/.cargo
1346+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
1347+
with:
1348+
path: ~/.cargo/registry
1349+
key: cargo-registry
1350+
1351+
- name: Determine number of CPUs
1352+
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV
1353+
1354+
- name: Install dependencies
1355+
run: |
1356+
apt update
1357+
apt -y install \
1358+
autoconf \
1359+
automake \
1360+
build-essential \
1361+
cargo-1.84 \
1362+
cbindgen \
1363+
clang-14 \
1364+
coccinelle \
1365+
dpdk-dev \
1366+
git \
1367+
hwloc \
1368+
libhwloc-dev \
1369+
jq \
1370+
libcap-ng-dev \
1371+
libevent-dev \
1372+
libevent-pthreads-2.1-7 \
1373+
libhiredis-dev \
1374+
libhyperscan-dev \
1375+
libjansson-dev \
1376+
libmagic-dev \
1377+
libnet1-dev \
1378+
libnetfilter-queue-dev \
1379+
libnetfilter-queue1 \
1380+
libnfnetlink-dev \
1381+
libnfnetlink0 \
1382+
libnuma-dev \
1383+
libpcap-dev \
1384+
libpcre2-dev \
1385+
libpython3.12 \
1386+
libtool \
1387+
libyaml-dev \
1388+
llvm-14-dev \
1389+
make \
1390+
parallel \
1391+
python-is-python3 \
1392+
python3-yaml \
1393+
rustc-1.84 \
1394+
software-properties-common \
1395+
zlib1g \
1396+
zlib1g-dev
1397+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1398+
- run: git config --global --add safe.directory /__w/suricata/suricata
1399+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
1400+
with:
1401+
name: prep
1402+
path: prep
1403+
- run: tar xf prep/suricata-update.tar.gz
1404+
- run: tar xf prep/suricata-verify.tar.gz
1405+
- run: ./autogen.sh
1406+
- run: ./configure --enable-unittests --enable-coccinelle
1407+
- run: make -j ${{ env.CPUS }}
1408+
- run: CONCURRENCY_LEVEL=${{ env.CPUS }} make check
1409+
- run: python3 ./suricata-verify/run.py -q --debug-failed
1410+
- run: make install
1411+
- run: make install-headers
1412+
- run: make install-library
1413+
13391414
ubuntu-24-04-cov-ut:
13401415
name: Ubuntu 24.04 (unittests coverage)
13411416
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)