Skip to content

Commit

Permalink
nvhpc ci - isntall a particular cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jan 8, 2024
1 parent 588285a commit dc76692
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/NVHPC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})"
Expand All @@ -92,6 +94,7 @@ jobs:
FLAMEGPU_SEATBELTS: ${{ matrix.config.SEATBELTS }}
PYTHON: ${{ matrix.python}}
VISUALISATION: ${{ matrix.VISUALISATION }}
CMAKE: ${{ matrix.cmake }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -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: >
Expand Down

0 comments on commit dc76692

Please sign in to comment.