Skip to content

Commit

Permalink
ci: cmake 3.19 added
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 31, 2024
1 parent be5e803 commit 94f146a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ jobs:
uses: ./.github/workflows/composite-example


cmake-320:
cmake-older:
timeout-minutes: 30

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
cmake_version: ["3.20.6"]
cmake_version: ["3.19.8", "3.20.6"]

steps:

Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/composite-cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ runs:
- name: Install CMake ${{ matrix.cmake_version }}
shell: bash
run: |
curl -LO "https://github.com/Kitware/CMake/releases/download/v${{ matrix.cmake_version }}/cmake-${{ matrix.cmake_version }}-linux-x86_64.tar.gz"
tar -xf cmake-${{ matrix.cmake_version }}-linux-x86_64.tar.gz
- name: CMake path
shell: bash
run: |
echo "CMAKE=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-linux-x86_64/bin/cmake" >> $GITHUB_ENV
echo "CTEST=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-linux-x86_64/bin/ctest" >> $GITHUB_ENV
echo "os=linux-x86_64" >> $GITHUB_ENV
echo "archive=$os.tar.gz" >> $GITHUB_ENV
curl -LO "https://github.com/Kitware/CMake/releases/download/v${{ matrix.cmake_version }}/cmake-${{ matrix.cmake_version }}-$archive"
tar -xf cmake-${{ matrix.cmake_version }}-$archive
echo "CMAKE=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-$os/bin/cmake" >> $GITHUB_ENV
echo "CTEST=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-$os/bin/ctest" >> $GITHUB_ENV
- name: echo CMake version
shell: bash
Expand Down

0 comments on commit 94f146a

Please sign in to comment.