File: ci.yml

package info (click to toggle)
libnginx-mod-http-fancyindex 1%3A0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 340 kB
  • sloc: ansic: 1,296; sh: 588; awk: 36; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (3)
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
---
name: Build
on: [pull_request]

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        compiler: [gcc, clang]
        dynamic: [0, 1]
        nginx:
          # Mainline
          - 1.21.3
          # Stable.
          - 1.20.1
          # First version with loadable module support.
          - 1.9.15
          # Oldest supported version.
          - 0.8.55
        exclude:
          - nginx: 0.8.55
            dynamic: 1
    runs-on: ubuntu-18.04
    env:
      CFLAGS: "-Wno-error"
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install Packages
        run: |
          sudo apt update
          sudo apt install -y libpcre3-dev libssl-dev
          t/get-pup || echo 'Tests needing pup will be skipped'
      - name: Test
        env:
          CC: ${{ matrix.compiler }}
        run: |
          CC=${{ matrix.compiler }}
          t/build-and-run ${{ matrix.nginx }} ${{ matrix.dynamic }}