Skip to content

Commit

Permalink
Build with autotools via GitHub Action [skip travis] [skip appveyor]
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Oct 30, 2024
1 parent f284a2b commit 7e43eb3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Autotools build"

on:
push:
pull_request:
workflow_call:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
build:
name: linux-gcc
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 5
submodules: recursive
- name: Install hdf5
timeout-minutes: 5
run: |
wget --no-check-certificate -nv https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.5/hdf5-1.14.5.tar.gz
tar -xzf hdf5-1.14.5.tar.gz
cd hdf5-1.14.5
./configure --quiet --enable-shared --enable-build-mode=production --disable-deprecated-symbols --disable-hl --disable-strict-format-checks --disable-instrument --disable-parallel --disable-trace --disable-internal-debug --disable-asserts --disable-tests --disable-tools --with-pic --with-default-api-version=v114 --disable-dependency-tracking CFLAGS="-w"
make install -C src -j8
- name: Configure
run: |
./autogen.sh
./configure --enable-shared --enable-mat73 --enable-extended-sparse --with-pic --with-hdf5=${GITHUB_WORKSPACE}/hdf5-1.14.5/hdf5 CFLAGS="-O3" CPPFLAGS="-DNDEBUG"
- name: Build with gcc
run: make -j8
- name: Test
run: make check
1 change: 1 addition & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "CMake build"
on:
push:
pull_request:
workflow_call:
workflow_dispatch:

defaults:
Expand Down
4 changes: 2 additions & 2 deletions config/matio_hdf5.m4
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AC_DEFUN([MATIO_CHECK_HDF5_V18],
LIBS="$HDF5_LIBS $ZLIB_LIBS $saved_LIBS"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include<stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <hdf5.h>
]], [[#if defined(H5Rdereference)
Expand Down Expand Up @@ -90,7 +90,7 @@ then
HDF5_REQUIRES_PRIVATE="hdf5 >= 1.8"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include<stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <hdf5.h>
]], [[H5open()]])],[ac_have_hdf5=yes],[ac_have_hdf5=no])
Expand Down

0 comments on commit 7e43eb3

Please sign in to comment.