Skip to content

Commit

Permalink
test more
Browse files Browse the repository at this point in the history
  • Loading branch information
gquintard committed Apr 3, 2024
1 parent c5526ad commit c4f16d1
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,51 @@
name: Quick test
on: [push]
jobs:
build:
build_against_packages:
strategy:
matrix:
version: ["73", "74"]
version: ["60lts", "73", "74", "75"]
runs-on: ubuntu-latest
steps:
steps :
- uses: actions/checkout@v4
- run: |
set -ex
cat << -EOF > /etc/apt/preferences.d/varnish
Package: *
Pin: origin "packagecloud.io"
Pin-Priority: 999
EOF
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish${{ matrix.version }}/script.deb.sh | sudo bash
sudo apt-get install -y cmake gcc jq libcjson-dev python3-docutils varnish varnish-dev
cmake -B build
cmake --build build/
ctest --test-dir build/ --output-on-failure
build_against_master:
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- run: |
sudo apt-get install -y \
automake \
cmake \
gcc \
jemalloc-dev \
jq \
libcjson-dev \
libedit-dev \
make
pcre2-dev \
python3-docutils
- run: |
git clone https://github.com/varnishcache/varnish-cache.git
cd varnish-cache
sed -i 's/^AC_INIT.*/AC_INIT([Varnish], ['$(date +%Y%m%d)'], [[email protected]])/' configure.ac
autogen.des
sudo make install -j32
- run: |
set -ex
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish${{ matrix.version }}/script.deb.sh | sudo bash
cmake -B build
cmake --build build/
ctest --test-dir build/ --output-on-failure

0 comments on commit c4f16d1

Please sign in to comment.