File: compile-test.yml

package info (click to toggle)
uwsgi 2.0.31-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,624 kB
  • sloc: ansic: 87,072; python: 7,010; cpp: 1,133; java: 708; perl: 678; sh: 585; ruby: 555; makefile: 148; xml: 130; cs: 121; objc: 37; php: 28; erlang: 20; javascript: 11
file content (58 lines) | stat: -rw-r--r-- 2,216 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
name: Compile test

on:
  push:
    branches: [ master, uwsgi-2.0 ]
  pull_request:
    branches: [ master, uwsgi-2.0 ]

jobs:
  build:
    strategy:
      matrix:
        libpcre: ["libpcre3-dev", "libpcre2-dev"]
        os: ["ubuntu-22.04"]
        cc: [gcc, clang]
        include:
          - os: ubuntu-22.04
            php: "php8.1"
            php-config: "php-config8.1"

    runs-on: ${{ matrix.os }}

    steps:
    - name: remove sury php ppa that does not ship libphpX.Y-embed
      run: |
        sudo add-apt-repository --remove ppa:ondrej/php
        sudo apt remove ${{ matrix.php }}-dev ${{ matrix.php }} ${{ matrix.php }}-common
    - name: Install dependencies
      run: |
        sudo apt update -qq
        sudo apt install --no-install-recommends -qqyf python3-dev \
          libxml2-dev ${{ matrix.libpcre }} libcap2-dev \
          libargon2-0-dev libsodium-dev \
          ${{ matrix.php }}-dev lib${{ matrix.php }}-embed \
          liblua5.1-0-dev ruby-dev \
          libjansson-dev libldap2-dev libpq-dev \
          libpam0g-dev libsqlite3-dev libyaml-dev \
          libzmq3-dev libmatheval-dev libperl-dev \
          libonig-dev libdb-dev libqdbm-dev libbz2-dev \
          libwrap0-dev libgeoip-dev libv8-dev libxslt1-dev \
          libboost-thread-dev libboost-filesystem-dev \
          libssl-dev libacl1-dev python-greenlet-dev \
          libcurl4-openssl-dev \
          openjdk-11-jdk libgloox-dev gccgo \
          cli-common-dev mono-devel mono-mcs uuid-dev \
          curl check ${{ matrix.cc == 'clang' && 'clang' || '' }}
    - uses: actions/checkout@v4
    - name: Build kitchensink uWSGI binary with gcc or default with clang
      run: CC=${{ matrix.cc }} UWSGICONFIG_PHPPATH=${{ matrix.php-config }} /usr/bin/python3 uwsgiconfig.py --build ${{ matrix.cc == 'gcc' && 'travis' || '' }}
    - name: Build uWSGI binary
      run: |
        CC=${{ matrix.cc }} /usr/bin/python3 uwsgiconfig.py --build base
    - name: Build cgi plugin
      run: |
        CC=${{ matrix.cc }} /usr/bin/python3 uwsgiconfig.py --plugin plugins/cgi base
    - name: Build dummy plugin
      run: |
        CC=${{ matrix.cc }} /usr/bin/python3 uwsgiconfig.py --plugin plugins/dummy base