forked from evanmiller/mod_zip
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.21 KB
/
build.yml
File metadata and controls
39 lines (39 loc) · 1.21 KB
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
name: build
on: [ push, pull_request ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]
version: [ 1.19.10, 1.20.2, 1.21.4 ]
steps:
- name: Install carton
run: sudo apt install carton
- uses: actions/checkout@v2
- name: Download nginx
run: wget http://nginx.org/download/nginx-${{ matrix.version }}.tar.gz
- name: Untar nginx
run: tar xvfz nginx-${{ matrix.version }}.tar.gz
- name: Configure
run: ./configure --prefix=${GITHUB_WORKSPACE}/t/nginx --add-module=${GITHUB_WORKSPACE}
working-directory: nginx-${{ matrix.version }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: -Wno-implicit-fallthrough
- name: Make
run: make
working-directory: nginx-${{ matrix.version }}
- name: Make install
run: make install
working-directory: nginx-${{ matrix.version }}
- name: Start nginx
run: ./restart.sh
working-directory: t
- name: Carton install
run: carton install
working-directory: t
- name: Carton exec
run: carton exec ./ziptest.pl
working-directory: t