From: Andres Freund Date: Wed, 3 Jun 2026 02:21:00 -0400 Subject: [PATCH v9a 07/22] ci: windows: Install bison flex via msys That's a fair bit faster and fails less often. --- .github/workflows/pg-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pg-ci.yml b/.github/workflows/pg-ci.yml index b05c3539ab6..e35170956e8 100644 --- a/.github/workflows/pg-ci.yml +++ b/.github/workflows/pg-ci.yml @@ -760,10 +760,25 @@ jobs: Add-Content $env:GITHUB_ENV "PATH=$filtered" Write-Host "Removed Mercurial entries from PATH" + # Install some dependencies via msys64, that seems to be the fastest and + # most reliable + - name: Install dependencies, Mingw + shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail "{0}"' + run: | + # Install some dependencies via msys64, that seems to be the fastest + # and most reliable + pacman -S --noconfirm --needed --asdeps \ + bison flex + + # Make bison and flex visible + echo C:/msys64/usr/bin >> "$GITHUB_PATH" + + # Don't prefer mingw's perl + echo C:/Strawberry/perl/bin >> "$GITHUB_PATH" + - name: Install dependencies shell: pwsh run: | - choco install -y --no-progress --limitoutput diffutils winflexbison3 # meson + ninja aren't preinstalled on windows-2022. Install via pip python -m pip install --upgrade meson ninja -- 2.54.0.380.gc69baaf57b --lyfxwjjve3vodszg Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v9a-0008-ci-mingw-Don-t-install-make-use-asdeps.patch"