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 | |
Tim Duesterhus | 89c9d0a | 2021-10-16 18:10:26 +0200 | [diff] [blame] | 14 | permissions: |
| 15 | contents: read |
| 16 | |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 17 | jobs: |
| 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 Duesterhus | 5f4ddb5 | 2022-04-09 22:08:41 +0200 | [diff] [blame] | 38 | - uses: actions/checkout@v3 |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 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 Tarreau | 4673c5e | 2021-11-26 15:45:41 +0100 | [diff] [blame] | 54 | echo "::group::Show platform specific defines" |
| 55 | echo | ${{ matrix.CC }} -dM -xc -E - |
| 56 | echo "::endgroup::" |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 57 | make -j$(nproc) all \ |
| 58 | ERR=1 \ |
| 59 | TARGET=${{ matrix.TARGET }} \ |
| 60 | CC=${{ matrix.CC }} \ |
Willy Tarreau | a0a6911 | 2022-02-23 17:58:46 +0100 | [diff] [blame] | 61 | DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \ |
Tim Duesterhus | ed54c3b | 2020-11-20 00:16:01 +0100 | [diff] [blame] | 62 | ${{ join(matrix.FLAGS, ' ') }} |
| 63 | - name: Show HAProxy version |
| 64 | id: show-version |
| 65 | run: | |
| 66 | ./haproxy -vv |
Tim Duesterhus | b87ecbb | 2022-10-14 19:46:07 +0200 | [diff] [blame] | 67 | echo "version=$(./haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT |