Skip to content

Commit d4ea677

Browse files
committed
Do not use pip to install cmake
Rather install the binary directly. Fixes fortran-lang#122.
1 parent dc7e49b commit d4ea677

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/CI.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
with:
3636
python-version: 3.x
3737

38-
- name: Set up common
39-
run: pip install --upgrade cmake
38+
- name: Install CMake Linux
39+
if: contains(matrix.os, 'ubuntu')
40+
run: ci/install_cmake.sh
4041

4142
- name: Install GFortran Linux
4243
if: contains( matrix.os, 'ubuntu')

ci/install_cmake.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
wget -qO- https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.tar.gz | sudo tar xz --strip=1 -C /usr/local/
6+
which cmake
7+
cmake --version

0 commit comments

Comments
 (0)