From 078fbdc78218de5fe18bdb1cf5e5058c40c5607e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 19 Mar 2021 08:58:56 +0100 Subject: [PATCH] ci: Ninja install fixed for test_package --- .github/workflows/ci-test-package-cmake.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-test-package-cmake.yml b/.github/workflows/ci-test-package-cmake.yml index 6e88085d..e993ce6f 100644 --- a/.github/workflows/ci-test-package-cmake.yml +++ b/.github/workflows/ci-test-package-cmake.yml @@ -110,8 +110,18 @@ jobs: run: | sudo apt install -y libc++-${{ matrix.config.compiler.version }}-dev libc++abi-${{ matrix.config.compiler.version }}-dev - name: Install Ninja + # TODO Find a proper syntax to make the below work + # if: !matrix.config.docker_image + shell: bash run: | - sudo apt install -y ninja-build + if [ $RUNNER_OS == 'Linux' ]; then + sudo apt install -y ninja-build + elif [ $RUNNER_OS == 'Windows' ]; then + choco install ninja + else + echo "'$RUNNER_OS' not supported" + exit 1 + fi - name: Set up Python uses: actions/setup-python@v2 with: