Skip to content

Commit dcf3339

Browse files
committed
add cmake 3.13 test ci
1 parent ccf6231 commit dcf3339

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@ jobs:
6262
asset_content_type: application/zip
6363

6464

65+
linuxCmake313:
66+
runs-on: ubuntu-20.04
67+
steps:
68+
- uses: actions/checkout@v2
69+
70+
- name: install netcdf4
71+
run: |
72+
sudo apt update -yq
73+
sudo apt install -yq --no-install-recommends ninja-build gfortran libnetcdff-dev
74+
75+
- name: get CMake 3.13
76+
run: |
77+
curl -L -O https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5-Linux-x86_64.tar.gz
78+
tar xf cmake-3.13.5-Linux-x86_64.tar.gz
79+
echo "${GITHUB_WORKSPACE}/cmake-3.13.5-Linux-x86_64/bin" >> $GITHUB_PATH
80+
81+
- run: cmake -B build
82+
- run: cmake --build build --parallel
83+
- run: ctest --parallel 2 --output-on-failure
84+
working-directory: build
85+
86+
6587

6688
mac:
6789
needs: linux

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13...3.20)
22

33
project(nc4fortran
44
LANGUAGES C Fortran
5-
VERSION 1.2.0
5+
VERSION 1.2.1
66
DESCRIPTION "thin, light object-oriented NetCDF4 Fortran interface"
77
HOMEPAGE_URL https://github.com/geospace-code/nc4fortran)
88

cmake/abi_check/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.14)
1+
cmake_minimum_required(VERSION 3.13)
22
project(abi_check LANGUAGES C Fortran)
33

44
add_library(addone OBJECT addone.c)

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('nc4fortran', 'fortran',
22
meson_version : '>=0.52.0',
3-
version: '1.2.0',
3+
version: '1.2.1',
44
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])
55

66
# --- find netcdf

0 commit comments

Comments
 (0)