blob: b5a198aff44e3fc0685edd2fcab0c51f52302865 [file] [log] [blame]
Tim Duesterhused54c3b2020-11-20 00:16:01 +01001# Copyright 2019 Ilya Shipitsin <chipitsine@gmail.com>
2# Copyright 2020 Tim Duesterhus <tim@bastelstu.be>
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version
7# 2 of the License, or (at your option) any later version.
8
9name: Windows
10
11on:
12 push:
13
14jobs:
15 msys2:
16 name: ${{ matrix.name }}
17 runs-on: ${{ matrix.os }}
18 defaults:
19 run:
20 shell: msys2 {0}
21 strategy:
22 matrix:
23 include:
24 - name: "Windows, gcc, all features"
25 TARGET: cygwin
26 CC: gcc
27 os: windows-latest
28 FLAGS:
29 - USE_OPENSSL=1
30 - USE_PCRE=1
31 - USE_PCRE_JIT=1
32 - USE_THREAD=1
33 - USE_ZLIB=1
34 steps:
35 - uses: actions/checkout@v2
36 - uses: msys2/setup-msys2@v2
37 with:
38 install: >-
39 coreutils
40 curl
41 diffutils
42 gawk
43 gcc
44 make
45 tar
46 openssl-devel
47 pcre-devel
48 zlib-devel
49 - name: Compile HAProxy with ${{ matrix.CC }}
50 run: |
51 make -j$(nproc) all \
52 ERR=1 \
53 TARGET=${{ matrix.TARGET }} \
54 CC=${{ matrix.CC }} \
Tim Duesterhus9fee7e02020-11-21 18:08:00 +010055 DEBUG=-DDEBUG_STRICT=1 \
Tim Duesterhused54c3b2020-11-20 00:16:01 +010056 ${{ join(matrix.FLAGS, ' ') }}
57 - name: Show HAProxy version
58 id: show-version
59 run: |
60 ./haproxy -vv
61 echo "::set-output name=version::$(./haproxy -v |awk 'NR==1{print $3}')"