Skip to content

Merge branch 'master' into fix-lua-lightuserdata-arm64 #168

Merge branch 'master' into fix-lua-lightuserdata-arm64

Merge branch 'master' into fix-lua-lightuserdata-arm64 #168

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
cc:
- gcc
- clang
make_target:
- check
- distcheck
configure_flags:
- --enable-luajit
- --disable-luajit
- --disable-luajit --disable-flush-jemalloc-tcache
include:
- cc: gcc
make_target: lcov
configure_flags: --enable-code-coverage
steps:
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=non-empty-value apt install -y \
automake autotools-dev lcov libcurl4-gnutls-dev \
libedit-dev libjemalloc-dev libncurses-dev \
liblua5.1-0-dev libluajit-5.1-dev libpcre2-dev libtool lua5.1 \
luajit python3-docutils python3-sphinx vim-common
- name: Install Varnish Cache
run: |
git clone https://github.com/varnishcache/varnish-cache.git ./varnish
pushd varnish
./autogen.sh
CC='${{ matrix.cc }}' ./configure
make -sj32
sudo make PREFIX='/usr/local' install
sudo ldconfig
popd
- name: Build & test VMOD
run: |
./autogen.sh
CC='${{ matrix.cc }}' ./configure --prefix=/usr ${{ matrix.configure_flags }}
make -j1
make ${{ matrix.make_target }} -j1
- name: Push code coverage
if: ${{ matrix.make_target == 'lcov' }}
run: |
cp libvmod-cfg-*-coverage.info codecov.info
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -t ${{ secrets.CODECOV_TOKEN }}
- name: Show test report
if: ${{ failure() }}
run: |
cat src/test-suite.log || exit 0