File: archs.yml

package info (click to toggle)
liboauth2 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 20,555; makefile: 190; sh: 13
file content (70 lines) | stat: -rw-r--r-- 2,633 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
name: Archs

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest
    name: ${{ matrix.arch }}

    strategy:
      fail-fast: false
      matrix:
        include:
#          - arch: armv6
#            distro: bookworm
#            # alpine_latest
#          - arch: armv7
#            distro: ubuntu_latest
          - arch: aarch64
            distro: ubuntu_latest
          - arch: riscv64
            distro: ubuntu_latest
          - arch: s390x
            distro: ubuntu_latest
          - arch: ppc64le
            distro: ubuntu_latest
  
    steps:
    - uses: actions/checkout@v4
    - uses: uraimo/run-on-arch-action@v3
      name: Build
      id: build
      with:
        arch: ${{ matrix.arch }}
        distro: ${{ matrix.distro }}
        install: |
          apt-get update -y
          apt-get install -y apache2-dev libcjose-dev libssl-dev check pkg-config wget
          apt-get install -y libjansson-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev redis-server memcached libpcre2-dev libpcre2-8-0 libjq-dev
          apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libxml2 libxml2-dev uuid-dev
          cd /tmp
          apt-get install -y nginx

          nginx -V 2>&1 | grep -m1 version | cut -d: -f2 | cut -d/ -f2 | cut -d" " -f1 > /tmp/nginx-version
          nginx -V 2>&1 | grep configure | cut -d: -f2- > /tmp/nginx-args
          apt-get remove -y nginx && apt-get autoremove -y
          sed -i s/--add-dynamic-module=[^[:space:]]*//g /tmp/nginx-args
          sed -i s/--with-http_xslt_module=[^[:space:]]*//g /tmp/nginx-args
          sed -i s/--with-http_geoip_module=[^[:space:]]*//g /tmp/nginx-args
          sed -i s/--with-stream_geoip_module=[^[:space:]]*//g /tmp/nginx-args
          sed -i s/--with-http_image_filter_module=[^[:space:]]*//g /tmp/nginx-args
          
          wget --progress=bar:force:noscroll --no-check-certificate https://nginx.org/download/nginx-$(cat /tmp/nginx-version).tar.gz
          tar zxf nginx-$(cat /tmp/nginx-version).tar.gz
          cd nginx-$(cat /tmp/nginx-version)
          echo "Configuring NGINX-$(cat /tmp/nginx-version): ./configure $(cat /tmp/nginx-args)"
          cat /tmp/nginx-args | xargs ./configure
          cd ..
          ln -s nginx-$(cat /tmp/nginx-version) nginx

        run: |
          ./autogen.sh
          ./configure --with-nginx=/tmp/nginx --with-jq=/usr
          sed -i "s/-l/#-l/g" /etc/memcached.conf
          service memcached start && service redis-server start && make check || (cat test-suite.log && exit -1)