mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +08:00
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: hdf5 dev autotools cygwin
|
|
|
|
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
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Set git to use LF
|
|
run: |
|
|
git config --global core.autocrlf input
|
|
|
|
- name: Get Sources
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- 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
|