From 25ede89983e0f65b1f7f901d20c9720aa56d4797 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Dec 2021 20:22:48 +0100 Subject: [PATCH] Use bash for all build steps for MSW CMake build Otherwise references to the variables don't work as expected. --- .github/workflows/ci_cmake.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cmake.yml b/.github/workflows/ci_cmake.yml index 5d8a598b7f..8eed7083ad 100644 --- a/.github/workflows/ci_cmake.yml +++ b/.github/workflows/ci_cmake.yml @@ -72,6 +72,11 @@ jobs: env: wxGTK_VERSION: ${{ matrix.gtk_version && matrix.gtk_version || 3 }} + # Use bash as the shell, even under MSW where the default is PowerShell. + defaults: + run: + shell: bash + steps: - name: Checkout uses: actions/checkout@v2 @@ -79,7 +84,6 @@ jobs: submodules: 'recursive' - name: Set environment variables - shell: bash run: | wxPROC_COUNT=`./build/tools/proc_count.sh` if [ "${{ matrix.cmake_generator }}" == "Xcode" ]; then