blob: 30309086230fd12c3d4265f0b22d557fb07db6a8 [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:
Tim Duesterhus5f4ddb52022-04-09 22:08:41 +020038 - uses: actions/checkout@v3
Tim Duesterhused54c3b2020-11-20 00:16:01 +010039 - 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 }} \
Willy Tarreaua0a69112022-02-23 17:58:46 +010061 DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \
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
Tim Duesterhusb87ecbb2022-10-14 19:46:07 +020067 echo "version=$(./haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT