From 793ee7587355911e093d8aa603273b2d6378d6b5 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 1 Oct 2023 23:17:36 -0600 Subject: [PATCH] Only install MinGW when necessary Installing MinGW 11 takes way too long to tolerate doing this in all Windows jobs. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd283f71d..b6f2c653c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,11 +105,15 @@ jobs: max_attempts: 10 timeout_minutes: 3 command: | - choco uninstall mingw - choco install mingw --version 11.2.0 choco install ninja OpenCppCoverage -y echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH + - name: Install MinGW + if: matrix.platform.name == 'Windows MinGW' + run: | + choco uninstall mingw + choco install mingw --version 11.2.0 + - name: Configure CMake shell: bash run: cmake --preset dev -DCMAKE_VERBOSE_MAKEFILE=ON ${{matrix.platform.flags}} ${{matrix.config.flags}} ${{matrix.type.flags}}