Skip to content

Commit

Permalink
add cmake 3.13 test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 21, 2021
1 parent ccf6231 commit dcf3339
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ jobs:
asset_content_type: application/zip


linuxCmake313:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: install netcdf4
run: |
sudo apt update -yq
sudo apt install -yq --no-install-recommends ninja-build gfortran libnetcdff-dev
- name: get CMake 3.13
run: |
curl -L -O https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5-Linux-x86_64.tar.gz
tar xf cmake-3.13.5-Linux-x86_64.tar.gz
echo "${GITHUB_WORKSPACE}/cmake-3.13.5-Linux-x86_64/bin" >> $GITHUB_PATH
- run: cmake -B build
- run: cmake --build build --parallel
- run: ctest --parallel 2 --output-on-failure
working-directory: build



mac:
needs: linux
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13...3.20)

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

Expand Down
2 changes: 1 addition & 1 deletion cmake/abi_check/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.13)
project(abi_check LANGUAGES C Fortran)

add_library(addone OBJECT addone.c)
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('nc4fortran', 'fortran',
meson_version : '>=0.52.0',
version: '1.2.0',
version: '1.2.1',
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])

# --- find netcdf
Expand Down

0 comments on commit dcf3339

Please sign in to comment.