Skip to content

next/272/60x/20240125/v1 #7164

next/272/60x/20240125/v1

next/272/60x/20240125/v1 #7164

Workflow file for this run

name: commit-check
on:
- pull_request
permissions: read-all
env:
DEBIAN_FRONTEND: "noninteractive"
jobs:
check-commits:
name: Commit Check
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- name: Caching ~/.cargo
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: ~/.cargo
key: commit-check-cargo
- name: Install dependencies
run: |
apt update
apt -y install \
libpcre3 \
libpcre3-dev \
build-essential \
autoconf \
automake \
ccache \
cargo \
git \
jq \
libtool \
libpcap-dev \
libnet1-dev \
libyaml-0-2 \
libyaml-dev \
libcap-ng-dev \
libcap-ng0 \
libmagic-dev \
libnetfilter-queue-dev \
libnetfilter-queue1 \
libnfnetlink-dev \
libnfnetlink0 \
libhiredis-dev \
libjansson-dev \
libevent-dev \
libevent-pthreads-2.1-7 \
libjansson-dev \
libpython2.7 \
libssl-dev \
make \
parallel \
pkg-config \
python3-yaml \
rustc \
software-properties-common \
zlib1g \
zlib1g-dev
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: echo "/usr/lib/ccache" >> $GITHUB_PATH
- name: Install cbindgen
run: cargo install cbindgen
- run: echo $PATH
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
with:
fetch-depth: 0
# The action above is supposed to do this for us, but it doesn't appear to stick.
- run: /usr/bin/git config --global --add safe.directory /__w/suricata/suricata
- run: git fetch
- run: git clone https://github.com/OISF/libhtp -b 0.5.x
- name: Checking Cherry-pick lines
run: |
./qa/validate-cp.sh "${GITHUB_BASE_REF}"
- name: Building all commits
run: |
echo "Building commits from ${GITHUB_BASE_REF}."
for rev in $(git rev-list --reverse origin/${GITHUB_BASE_REF}...); do
git checkout $rev
echo "Building rev ${rev}" | tee -a build_log.txt
./autogen.sh >> build_log.txt 2>&1
./configure --enable-unittests >> build_log.txt 2>&1
if ! make -j2 >> build_log.txt 2>&1; then
echo "::error ::Failed to build rev ${rev}"
tail -n 50 build_log.txt
exit 1
fi
make -ik distclean > /dev/null
done
- uses: actions/upload-artifact@v2-preview
name: Uploading build log
if: always()
with:
name: build_log
path: build_log.txt