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 f8029bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: 10 additions & 4 deletions .github/workflows/composite-cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ runs:
using: "composite"

steps:
- name: environment
shell: bash
run: |
echo "osarch=linux-x86_64" >> $GITHUB_ENV
echo "archive=linux-x86_64.tar.gz" >> $GITHUB_ENV
- 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
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
- 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 "CMAKE=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-$osarch/bin/cmake" >> $GITHUB_ENV
echo "CTEST=$GITHUB_WORKSPACE/cmake-${{ matrix.cmake_version }}-$osarch/bin/ctest" >> $GITHUB_ENV
- name: echo CMake version
shell: bash
Expand Down

0 comments on commit f8029bd

Please sign in to comment.