v2.0.0: change LICENSE to Apache 2.0 #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0, 1.27.0] | |
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 | |
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 | |
- 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" | |