mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
CI: Use case() function
GitHub Actions introduced a new `case()` function in January that works just like HAProxy’s `iif()` converter (just with an arbitrary number of expressions). It is more robust than chaining strings with `&&` and `||`, because it includes proper type-checking. see https://github.blog/changelog/2026-01-29-github-actions-smarter-editing-clearer-debugging-and-a-new-case-function/#write-more-expressive-expressions-with-a-case-function
This commit is contained in:
parent
7640d7949f
commit
578d971d7d
1 changed files with 3 additions and 3 deletions
6
.github/workflows/vtest.yml
vendored
6
.github/workflows/vtest.yml
vendored
|
|
@ -76,9 +76,9 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
|
||||
sudo apt-get --no-install-recommends -y install \
|
||||
${{ contains(matrix.FLAGS, 'USE_LUA=1') && 'liblua5.4-dev' || '' }} \
|
||||
${{ contains(matrix.FLAGS, 'USE_PCRE2=1') && 'libpcre2-dev' || '' }} \
|
||||
${{ contains(matrix.ssl, 'BORINGSSL=yes') && 'ninja-build' || '' }} \
|
||||
${{ case(contains(matrix.FLAGS, 'USE_LUA=1'), 'liblua5.4-dev', '') }} \
|
||||
${{ case(contains(matrix.FLAGS, 'USE_PCRE2=1'), 'libpcre2-dev', '') }} \
|
||||
${{ case(contains(matrix.ssl, 'BORINGSSL=yes'), 'ninja-build', '') }} \
|
||||
socat \
|
||||
gdb \
|
||||
jose
|
||||
|
|
|
|||
Loading…
Reference in a new issue