-
-
Notifications
You must be signed in to change notification settings - Fork 98
38 lines (35 loc) · 1.29 KB
/
autotools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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