-
-
Notifications
You must be signed in to change notification settings - Fork 266
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 msys2 workflow for CMake #4991
Merged
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ce70344
Add msys2 workflow for CMake
byrnHDF 5df0ee5
Add call to msys2 workflow
byrnHDF 8fdc7b6
Correct workflow step
byrnHDF 7fa9107
Do not regenerate files
byrnHDF c81df1d
Correct option name
byrnHDF e13eed3
Add -D_GNU_SOURCE to MinGW to get vasprintf
derobins 0c55e8e
Merge branch 'develop' into develop-ci-msys2
derobins 8e6bc72
Don't check for alarm(2) on MinGW in CMake
derobins 2d308c1
Added a note to RELEASE.txt
derobins 39b9867
Exclude some tests
byrnHDF d78c151
Merge branch 'develop'
byrnHDF 1f6de1f
cleanup
byrnHDF 0cdcf92
revert julia ci change
byrnHDF b7f647e
Exclude test known to fail
byrnHDF e707709
Add expected tests to a separate step
byrnHDF 017a432
Add expect to fail test step
byrnHDF 7666768
Use -R instead of -I
byrnHDF b832fc8
Refine regex for dtypes
byrnHDF 354d1a6
Merge branch 'HDFGroup:develop' into develop-ci-msys2
byrnHDF 6fe402b
revert workflow step addition
byrnHDF 81ef0de
Merge branch 'HDFGroup:develop' into develop-ci-msys2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: hdf5 dev CMake MSys2 CI | ||
|
||
# Triggers the workflow on a call from another workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
build_mode: | ||
description: "release vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
CMake_build_and_test: | ||
|
||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- { icon: '⬛', sys: mingw32 } | ||
- { icon: '🟦', sys: mingw64 } | ||
- { icon: '🟨', sys: ucrt64 } | ||
- { icon: '🟧', sys: clang64 } | ||
name: ${{ matrix.icon }} MSYS2-${{ matrix.sys }}-${{ inputs.build_mode }} | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
|
||
steps: | ||
- name: '${{ matrix.icon }} Setup MSYS2' | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{matrix.sys}} | ||
update: true | ||
install: >- | ||
base-devel | ||
git | ||
gcc | ||
make | ||
development | ||
pacboy: >- | ||
toolchain:p | ||
cmake:p | ||
ninja:p | ||
|
||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf input | ||
|
||
- name: Get Sources | ||
uses: actions/[email protected] | ||
|
||
- name: CMake Configure | ||
run: | | ||
mkdir "${{ runner.workspace }}/build" | ||
cd "${{ runner.workspace }}/build" | ||
cmake -C $GITHUB_WORKSPACE/config/cmake/cacheinit.cmake \ | ||
-G Ninja \ | ||
-DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \ | ||
-DCMAKE_TOOLCHAIN_FILE="" \ | ||
-DHDF5_GENERATE_HEADERS=OFF \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DHDF5_ENABLE_ALL_WARNINGS=ON \ | ||
-DHDF5_ENABLE_PARALLEL:BOOL=OFF \ | ||
-DHDF5_BUILD_CPP_LIB:BOOL=OFF \ | ||
-DHDF5_BUILD_FORTRAN=OFF \ | ||
-DHDF5_BUILD_JAVA=OFF \ | ||
-DHDF5_BUILD_DOC=OFF \ | ||
-DLIBAEC_USE_LOCALCONTENT=OFF \ | ||
-DZLIB_USE_LOCALCONTENT=OFF \ | ||
$GITHUB_WORKSPACE | ||
|
||
- name: CMake Build | ||
run: | | ||
cmake --build . --parallel 3 --config ${{ inputs.build_mode }} | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
- name: CMake Run Tests | ||
run: | | ||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -E "tfloatsattrs|testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat" | ||
working-directory: ${{ runner.workspace }}/build | ||
|
||
- name: CMake Run Expected to Fail Tests | ||
run: | | ||
ctest . --parallel 2 -C ${{ inputs.build_mode }} -V -R "tfloatsattrs|testhdf5-base|cache_api|dt_arith|H5TEST-dtypes|err_compat" | ||
working-directory: ${{ runner.workspace }}/build | ||
continue-on-error: true |
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
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.
Please put this in a separate PR
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.
done