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 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