Skip to content

Commit

Permalink
ci: add gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 18, 2024
1 parent 96ba8cf commit dda3591
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CTEST_PARALLEL_LEVEL: 4

on:
push:
Expand All @@ -27,17 +28,17 @@ jobs:
matrix:
os: [ubuntu-latest]
shared: [false]
gcc: [9, 10, 11, 12]
gcc: [9, 10, 11, 12, 13]
include:
- os: ubuntu-latest
shared: true
gcc: 12
gcc: 13
- os: macos-latest
shared: true
gcc: 12
gcc: 13
- os: macos-latest
shared: false
gcc: 12
gcc: 13

runs-on: ${{ matrix.os }}
env:
Expand All @@ -48,7 +49,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Python pkgs
run: pip install numpy h5py
Expand Down Expand Up @@ -135,7 +136,7 @@ jobs:
- name: Code coverage
run: cmake --build --parallel --preset run-coverage

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-report-html
path: build-coverage/coverage/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/oneapi-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
FC: ifx
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml
CTEST_NO_TESTS_ACTION: error
CTEST_PARALLEL_LEVEL: 4
CMAKE_BUILD_PARALLEL_LEVEL: 4
CMAKE_BUILD_TYPE: Release
# debug triggers asan build errors, peculiar to GitHub Actions
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ target_link_libraries(h5fortran PUBLIC HDF5::HDF5)
set_property(TARGET h5fortran PROPERTY Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include)
set_property(TARGET h5fortran PROPERTY VERSION ${PROJECT_VERSION})

# GLOBAL needed for use by FetchContent
# GLOBAL needed for use by parent projects
add_library(h5fortran::h5fortran INTERFACE IMPORTED GLOBAL)
target_link_libraries(h5fortran::h5fortran INTERFACE h5fortran)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include)
# avoid race condition when used by FetchContent
# avoid race condition when used by parent projects

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/h5fortran.mod DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[![ci](https://github.com/geospace-code/h5fortran/actions/workflows/ci.yml/badge.svg)](https://github.com/geospace-code/h5fortran/actions/workflows/ci.yml)
[![ci_build](https://github.com/geospace-code/h5fortran/actions/workflows/ci_build.yml/badge.svg)](https://github.com/geospace-code/h5fortran/actions/workflows/ci_build.yml)
[![oneapi-linux](https://github.com/geospace-code/h5fortran/actions/workflows/oneapi-linux.yml/badge.svg)](https://github.com/geospace-code/h5fortran/actions/workflows/oneapi-linux.yml)
[![ci_fpm](https://github.com/geospace-code/h5fortran/actions/workflows/ci_fpm.yml/badge.svg)](https://github.com/geospace-code/h5fortran/actions/workflows/ci_fpm.yml)

Simple, robust, thin HDF5 polymorphic Fortran read/write interface.
Expand Down

0 comments on commit dda3591

Please sign in to comment.