CI: Clean up Windows CI
authorTim Duesterhus <tim@bastelstu.be>
Thu, 19 Nov 2020 23:16:01 +0000 (00:16 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 7 Dec 2021 18:00:59 +0000 (19:00 +0100)
commit346b21884bdaf66e43b91b81574b1ddc85153a76
tree1bebc1c7920c50036828e590c0d149220ec11a52
parentf2cdfd59b205217b4e15224041ee79ba3346b880
CI: Clean up Windows CI

This patch cleans up the Windows CI to look more similar to the refactored
Linux CI on GitHub Actions.

It switches the environment set-up from some manual cygwin setup via choco to
the msys2/setup-msys2@v2 action which just works and allows later steps to look
like any others without need to manually specify the shell.

This new setup is much faster than before where a single Windows build required
more than 10 minutes with more than 5 minutes just spent setting up the
environment and more than 6 minutes compiling HAProxy.

With this patch the setting of of the environment is done in less than a minute
and HAProxy is compiled in less than 2 minutes.

The only drawback is that Lua does not appear to be readily available. I expect
this to be acceptable and that the benefits far outweight this small drawback.

(cherry picked from commit ed54c3baa5c661346e24e6ed0c1fcdd8bd6cedb7)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
.github/workflows/windows-latest.yml [deleted file]
.github/workflows/windows.yml [new file with mode: 0644]