Skip to content

Commit

Permalink
ci: add Cmake 3.20 case
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 31, 2024
1 parent 159f27c commit be1bda5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ env:
CTEST_PARALLEL_LEVEL: 0
CMAKE_INSTALL_PREFIX: ~/local
CMAKE_PREFIX_PATH: ~/local
CMAKE_GENERATOR: Ninja
CMAKE_TLS_VERIFY: true

on:
Expand Down Expand Up @@ -63,3 +62,36 @@ jobs:

- name: build example
uses: ./.github/workflows/composite-example


cmake-320:
timeout-minutes: 30

runs-on: ubuntu-20.04

strategy:
matrix:
cmake_version: ["3.20.6"]

steps:

- uses: actions/checkout@v4

- name: prereqs except scalapack
run: |
sudo apt-get update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev
- uses: ./.github/workflows/composite-cmake

- name: configure
run: $CMAKE -Bbuild

- name: build
run: $CMAKE --build build

- name: test
run: $CTEST --test-dir build

- name: install package
run: $CMAKE --install build
20 changes: 20 additions & 0 deletions .github/workflows/composite-cmake/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
runs:

using: "composite"

steps:
- 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
- name: echo CMake version
shell: bash
run: $CMAKE --version
4 changes: 2 additions & 2 deletions .github/workflows/composite-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ runs:
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev libscalapack-openmpi-dev ninja-build
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev libscalapack-openmpi-dev
- name: Install prereqs (macOS)
shell: bash
if: runner.os == 'macOS'
run: brew install open-mpi ninja scalapack
run: brew install open-mpi scalapack

- name: Install OpenBLAS (Linux)
shell: bash
Expand Down

0 comments on commit be1bda5

Please sign in to comment.