-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (36 loc) · 1.02 KB
/
ci-devel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ci-devel
on:
push:
pull_request:
schedule:
- cron: "11 3 * * 6"
jobs:
test:
if: success() || failure()
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [clang, gcc]
steps:
- uses: varnishcache-friends/setup-varnish@v1
- run: |
sudo apt-get update
sudo apt-get install -y python3-docutils libmaxminddb-dev
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./autogen.sh
- name: enable gcov
if: matrix.compiler == 'gcc'
run: echo "CONFIGURE_ARGS=--enable-gcov" >> $GITHUB_ENV
- name: configure
run: CC=${{ matrix.compiler }} ./configure CFLAGS="-Wall -Wextra -Werror" $CONFIGURE_ARGS
- run: make
- run: make check VERBOSE=1
- name: codecov
if: matrix.compiler == 'gcc'
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -v -f src/.libs/libvmod-geoip2.info -t ${{ secrets.CODECOV_TOKEN }}
- run: make distcheck