-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cygwin CI and update yaml files for consistency and accuracy (#4131)
* Add cygwin CI * add cygwin packages * Correct option names * Cleanup yaml file and synch look and feel * Synch CI look and feel and correct path issues * Upgrade oneapi version * pwsh needs env: for vars * No continuation char for pwsh * restore correct pwsh step * Run subset of tests for cygwin workflow * Remove space chars in regex * restore full tests
- Loading branch information
Showing
18 changed files
with
399 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: hdf5 dev CMake 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: cmake gcc-fortran make ninja zlib-devel flex bison perl | ||
|
||
- name: CMake Configure | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
mkdir build | ||
cd build | ||
cmake -C ../config/cmake/cacheinit.cmake \ | ||
-G Ninja \ | ||
--log-level=VERBOSE \ | ||
-DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \ | ||
-DBUILD_SHARED_LIBS:BOOL=OFF \ | ||
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF \ | ||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \ | ||
-DLIBAEC_USE_LOCALCONTENT=OFF \ | ||
-DZLIB_USE_LOCALCONTENT=OFF \ | ||
-DHDF5_BUILD_FORTRAN:BOOL=ON \ | ||
-DHDF5_BUILD_JAVA:BOOL=OFF \ | ||
.. | ||
- name: CMake Build | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
cd build | ||
cmake --build . --parallel 3 --config ${{ inputs.build_mode }} | ||
- name: CMake Run Tests | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
cd build | ||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V | ||
# ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -R "FORTRAN|H5TEST" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.