2024-03-14 22:16:53 +08:00
|
|
|
name: hdf5 dev autotools cygwin
|
|
|
|
|
2024-06-24 20:59:29 +08:00
|
|
|
# Triggers the workflow on a call from another workflow
|
2024-03-14 22:16:53 +08:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
build_mode:
|
|
|
|
description: "release vs. debug build"
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cygwin_build_and_test:
|
|
|
|
name: "cygwin ${{ inputs.build_mode }}"
|
|
|
|
runs-on: windows-latest
|
2024-03-28 04:55:19 +08:00
|
|
|
timeout-minutes: 30
|
2024-03-14 22:16:53 +08:00
|
|
|
steps:
|
|
|
|
- name: Set git to use LF
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf input
|
|
|
|
|
|
|
|
- name: Get Sources
|
2024-07-03 04:06:11 +08:00
|
|
|
uses: actions/checkout@v4.1.7
|
2024-03-14 22:16:53 +08:00
|
|
|
|
|
|
|
- name: Install Cygwin
|
|
|
|
uses: cygwin/cygwin-install-action@master
|
|
|
|
with:
|
|
|
|
packages: autoconf automake make gcc-fortran libtool zlib-devel m4 flex bison perl
|
|
|
|
|
|
|
|
- name: Autotools Configure
|
|
|
|
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
|
|
|
|
run: |
|
|
|
|
export PATH=/usr/bin:$PATH
|
|
|
|
sh ./autogen.sh
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../configure \
|
|
|
|
--enable-build-mode=${{ inputs.build_mode }} \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-fortran
|
|
|
|
|
|
|
|
- name: Autotools Build
|
|
|
|
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
|
|
|
|
run: |
|
|
|
|
export PATH=/usr/bin:$PATH
|
|
|
|
cd build
|
|
|
|
make -j3
|
|
|
|
|
|
|
|
- name: Autotools Run Tests
|
|
|
|
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
|
|
|
|
run: |
|
|
|
|
export PATH=/usr/bin:$PATH
|
|
|
|
cd build
|
|
|
|
# make check -j ---- cache test fails
|
|
|
|
|
|
|
|
- name: Autotools Install
|
|
|
|
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}'
|
|
|
|
run: |
|
|
|
|
export PATH=/usr/bin:$PATH
|
|
|
|
cd build
|
|
|
|
make install
|