From 02330e0a15e9b90a888f577e31cec86cbb76d496 Mon Sep 17 00:00:00 2001 From: Adria Arrufat Date: Tue, 29 Nov 2022 10:10:47 +0900 Subject: [PATCH] Fix GitHub actions on Windows because of CMake 3.25.0 (#2692) --- .github/workflows/build_cpp.yml | 10 ++++++++-- .github/workflows/build_python.yml | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_cpp.yml b/.github/workflows/build_cpp.yml index e2d5f9eb8..7afa10f11 100644 --- a/.github/workflows/build_cpp.yml +++ b/.github/workflows/build_cpp.yml @@ -106,7 +106,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Configure - run: cmake . -B ${{ env.build_dir }} + run: | + # don't use CMake 3.25.0 https://gitlab.kitware.com/cmake/cmake/-/issues/23975 + pip3 install cmake==3.24.0 + cmake . -B ${{ env.build_dir }} - name: Build just tests run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 - name: Test @@ -119,7 +122,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Configure - run: cmake . -B ${{ env.build_dir }} + run: | + # don't use CMake 3.25.0 https://gitlab.kitware.com/cmake/cmake/-/issues/23975 + pip3 install cmake==3.24.0 + cmake . -B ${{ env.build_dir }} - name: Build just tests run: cmake --build ${{ env.build_dir }} --config Debug --target dtest --parallel 4 - name: Build ancillary tools diff --git a/.github/workflows/build_python.yml b/.github/workflows/build_python.yml index ce25f5f2e..eeb25257a 100644 --- a/.github/workflows/build_python.yml +++ b/.github/workflows/build_python.yml @@ -19,9 +19,13 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - name: Install python deps - run: pip install pytest numpy + run: | + pip install pytest numpy + # don't use CMake 3.25.0 https://gitlab.kitware.com/cmake/cmake/-/issues/23975 + pip3 install cmake==3.24.0 - name: Build run: | + pip3 install cmake==3.24.0 python setup.py build python setup.py install --user - name: Test