File: build.yml

package info (click to toggle)
liboauth2 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 20,555; makefile: 190; sh: 13
file content (61 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build

on: [push, pull_request]

jobs:

  build:
  
    runs-on: ubuntu-latest
    name: NGINX v${{ matrix.nginx_version }}

    strategy:
      matrix:
        nginx_version: [1.18.0, 1.24.0, 1.26.2, 1.27.3]

    services:

      redis:
        image: redis
#        options: >-
#          --health-cmd "redis-cli ping"
#          --health-interval 10s
#          --health-timeout 5s
#          --health-retries 5
        ports:
          - 6379:6379

      memcached:
        image: memcached
        ports:
          - 11211:11211

    steps:
    - uses: actions/checkout@v4

    - name: Dependencies
      run: |
        sudo apt-get update -y
        sudo apt-get install -y apache2-dev libcjose-dev libssl-dev check pkg-config
        sudo apt-get install -y libjansson-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev libpcre2-dev libpcre2-8-0 libjq-dev
        sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libxml2 libxml2-dev uuid-dev
        cd /tmp
        wget https://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
        tar zxvf nginx-${{ matrix.nginx_version }}.tar.gz
        ln -s nginx-${{ matrix.nginx_version }} nginx
        cd /tmp/nginx && ./configure --with-debug
        
    - name: Configure
      run: |
        ./autogen.sh
        ./configure --with-nginx=/tmp/nginx --with-jq=/usr

    - name: Make
      run: make

    - name: Test
      run: make check || (cat test-suite.log && exit -1)

    - name: Distcheck
      run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--with-nginx=/tmp/nginx" DESTDIR="/tmp/liboauth2"