Fix GitHub actions on Windows because of CMake 3.25.0 (#2692)

pull/2698/head
Adria Arrufat 2 years ago committed by GitHub
parent 01c7bfe880
commit 02330e0a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Configure - 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 - name: Build just tests
run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4
- name: Test - name: Test
@ -119,7 +122,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Configure - 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 - name: Build just tests
run: cmake --build ${{ env.build_dir }} --config Debug --target dtest --parallel 4 run: cmake --build ${{ env.build_dir }} --config Debug --target dtest --parallel 4
- name: Build ancillary tools - name: Build ancillary tools

@ -19,9 +19,13 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
- name: Install python deps - 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 - name: Build
run: | run: |
pip3 install cmake==3.24.0
python setup.py build python setup.py build
python setup.py install --user python setup.py install --user
- name: Test - name: Test

Loading…
Cancel
Save