Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 1 | # 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 | |
| 9 | name: Windows |
| 10 | |
| 11 | on: |
| 12 | push: |
| 13 | |
| 14 | jobs: |
| 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 Duesterhus | bb39f49 | 2023-09-06 16:57:29 +0200 | [diff] [blame] | 35 | - uses: actions/checkout@v4 |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 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: | |
Willy Tarreau | 06bed61 | 2021-11-26 15:45:41 +0100 | [diff] [blame] | 51 | echo "::group::Show platform specific defines" |
| 52 | echo | ${{ matrix.CC }} -dM -xc -E - |
| 53 | echo "::endgroup::" |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 54 | make -j$(nproc) all \ |
| 55 | ERR=1 \ |
| 56 | TARGET=${{ matrix.TARGET }} \ |
| 57 | CC=${{ matrix.CC }} \ |
Willy Tarreau | 16bfd73 | 2022-02-23 17:58:46 +0100 | [diff] [blame] | 58 | DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \ |
William Lallemand | 50017ef | 2023-02-13 15:12:50 +0100 | [diff] [blame] | 59 | DEBUG_CFLAGS="-g -Wno-deprecated-declarations" \ |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 60 | ${{ join(matrix.FLAGS, ' ') }} |
| 61 | - name: Show HAProxy version |
| 62 | id: show-version |
| 63 | run: | |
| 64 | ./haproxy -vv |
Tim Duesterhus | 03072a9 | 2022-10-14 19:46:07 +0200 | [diff] [blame] | 65 | echo "version=$(./haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT |