-
-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (36 loc) · 1.21 KB
/
build.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
42
43
44
45
46
name: Test Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
nginx-branch: [stable, mainline]
steps:
- uses: actions/checkout@v3
- name: Install build and test dependencies
run: |
sudo apt-get --yes update
sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus
- name: Create NGINX download directory
run: mkdir nginx
- name: Download ${{ matrix.nginx-branch }} NGINX
uses: dvershinin/lastversion-action@main
with:
repository: 'nginx'
action: 'unzip'
branch: ${{ matrix.nginx-branch }}
working_directory: ./nginx
- name: Configure NGINX to compile with the module statically
run: |
cd nginx && ./configure --with-debug --add-module=..
- name: Make NGINX
run: |
cd nginx && make -j$(nproc)
- name: Ensure Test::Nginx installed
run: |
cpanm --notest --local-lib=$HOME/perl5 Test::Nginx
- name: Test the module
run: |
PATH=$(pwd)/nginx/objs:$PATH PERL5LIB=$HOME/perl5/lib/perl5 TEST_NGINX_VERBOSE=true prove -v