From dc766922172acd2fff2ce811b79214241f2cb54a Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Mon, 8 Jan 2024 18:32:04 +0000 Subject: [PATCH] nvhpc ci - isntall a particular cmake version --- .github/workflows/NVHPC.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/NVHPC.yml b/.github/workflows/NVHPC.yml index 94af7999f..3525cec5f 100644 --- a/.github/workflows/NVHPC.yml +++ b/.github/workflows/NVHPC.yml @@ -73,6 +73,8 @@ jobs: VISUALISATION: # - "ON" - "OFF" + cmake: + - "3.20.0" # Name the job based on matrix/env options name: "build (${{ matrix.cudacxx.hostcxx }}, ${{matrix.python}}, ${{ matrix.VISUALISATION }}, ${{ matrix.config.name }}, ${{ matrix.cudacxx.os }})" @@ -92,6 +94,7 @@ jobs: FLAMEGPU_SEATBELTS: ${{ matrix.config.SEATBELTS }} PYTHON: ${{ matrix.python}} VISUALISATION: ${{ matrix.VISUALISATION }} + CMAKE: ${{ matrix.cmake }} steps: - uses: actions/checkout@v3 @@ -158,6 +161,15 @@ jobs: make make install + - name: Install cmake from GitHub Releases + if: ${{ env.CMAKE != '' && env.CMAKE != 'default' }} + working-directory: ${{ runner.temp }} + run: | + wget -q https://github.com/Kitware/CMake/releases/download/v${{ env.CMAKE }}/cmake-${{ env.CMAKE }}-linux-x86_64.tar.gz + tar -zxvf cmake-${{ env.CMAKE }}-linux-x86_64.tar.gz + # Inner directory case changes in some releases, use find to get the right path + echo "$(dirname $(find $(pwd) -wholename "*/bin/cmake" -exec echo {} \; -quit))" >> $GITHUB_PATH + - name: Configure cmake run: >