blob: 58283ffc4fc4399aef91e13f44fafd0f6beb2a89 [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:
Tim Duesterhus4bb778b2022-04-09 22:08:41 +020035 - uses: actions/checkout@v3
Tim Duesterhused54c3b2020-11-20 00:16:01 +010036 - 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: |
Willy Tarreau06bed612021-11-26 15:45:41 +010051 echo "::group::Show platform specific defines"
52 echo | ${{ matrix.CC }} -dM -xc -E -
53 echo "::endgroup::"
Tim Duesterhused54c3b2020-11-20 00:16:01 +010054 make -j$(nproc) all \
55 ERR=1 \
56 TARGET=${{ matrix.TARGET }} \
57 CC=${{ matrix.CC }} \
Willy Tarreau16bfd732022-02-23 17:58:46 +010058 DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \
Tim Duesterhused54c3b2020-11-20 00:16:01 +010059 ${{ join(matrix.FLAGS, ' ') }}
60 - name: Show HAProxy version
61 id: show-version
62 run: |
63 ./haproxy -vv
64 echo "::set-output name=version::$(./haproxy -v |awk 'NR==1{print $3}')"