blob: 4d14d4817bd05b10e6db2003d93e5a50aa804455 [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
Tim Duesterhus89c9d0a2021-10-16 18:10:26 +020014permissions:
15 contents: read
16
Tim Duesterhused54c3b2020-11-20 00:16:01 +010017jobs:
18 msys2:
19 name: ${{ matrix.name }}
20 runs-on: ${{ matrix.os }}
21 defaults:
22 run:
23 shell: msys2 {0}
24 strategy:
25 matrix:
26 include:
27 - name: "Windows, gcc, all features"
28 TARGET: cygwin
29 CC: gcc
30 os: windows-latest
31 FLAGS:
32 - USE_OPENSSL=1
33 - USE_PCRE=1
34 - USE_PCRE_JIT=1
35 - USE_THREAD=1
36 - USE_ZLIB=1
37 steps:
38 - uses: actions/checkout@v2
39 - uses: msys2/setup-msys2@v2
40 with:
41 install: >-
42 coreutils
43 curl
44 diffutils
45 gawk
46 gcc
47 make
48 tar
49 openssl-devel
50 pcre-devel
51 zlib-devel
52 - name: Compile HAProxy with ${{ matrix.CC }}
53 run: |
Willy Tarreau4673c5e2021-11-26 15:45:41 +010054 echo "::group::Show platform specific defines"
55 echo | ${{ matrix.CC }} -dM -xc -E -
56 echo "::endgroup::"
Tim Duesterhused54c3b2020-11-20 00:16:01 +010057 make -j$(nproc) all \
58 ERR=1 \
59 TARGET=${{ matrix.TARGET }} \
60 CC=${{ matrix.CC }} \
Tim Duesterhus9fee7e02020-11-21 18:08:00 +010061 DEBUG=-DDEBUG_STRICT=1 \
Tim Duesterhused54c3b2020-11-20 00:16:01 +010062 ${{ join(matrix.FLAGS, ' ') }}
63 - name: Show HAProxy version
64 id: show-version
65 run: |
66 ./haproxy -vv
67 echo "::set-output name=version::$(./haproxy -v |awk 'NR==1{print $3}')"