-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cygwin CI and update yaml files for consistency and accuracy #4131
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6326d37
Add cygwin CI
byrnHDF 91f9551
add cygwin packages
byrnHDF 87b7ad1
Merge branch 'HDFGroup:develop' into develop-cyg-ci
byrnHDF 5c4034d
Correct option names
byrnHDF db9fa8b
Cleanup yaml file and synch look and feel
byrnHDF 0d54fe0
Synch CI look and feel and correct path issues
byrnHDF e1344e7
Upgrade oneapi version
byrnHDF a32628a
pwsh needs env: for vars
byrnHDF 704a2ba
No continuation char for pwsh
byrnHDF 96cf285
restore correct pwsh step
byrnHDF 9e09f9c
Run subset of tests for cygwin workflow
byrnHDF 90b9da5
Remove space chars in regex
byrnHDF 7ee2750
restore full tests
byrnHDF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the cache test for autotools fails as described in #4112.