-
-
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 GitHub Action. #4112
Changes from all commits
cd60628
62cd9d8
df5afb1
8f7198e
180e1d8
dfd079f
c792c54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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 | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Cygwin | ||
uses: cygwin/cygwin-install-action@master | ||
with: | ||
packages: automake make gcc-fortran libjpeg-devel libtool zlib-devel | ||
|
||
- name: Autotools Configure | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
./autogen.sh | ||
./configure --enable-build-mode=${{ inputs.build_mode }} | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
|
||
- name: Autotools Build | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
make | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
|
||
- name: Autotools Run Tests | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
make check | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
|
||
- name: Autotools Install | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
make install | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||
|
||
- name: Autotools Uninstall | ||
run: | | ||
export PATH=/usr/bin:$PATH | ||
make uninstall | ||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,50 @@ | ||||||||
name: hdf5 dev CMake Cygwin | ||||||||
|
||||||||
on: | ||||||||
workflow_call: | ||||||||
inputs: | ||||||||
build_mode: | ||||||||
description: "release vs. debug build" | ||||||||
required: true | ||||||||
type: string | ||||||||
|
||||||||
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 | ||||||||
|
||||||||
- uses: actions/checkout@v4 | ||||||||
|
||||||||
- name: Install Cygwin | ||||||||
uses: cygwin/cygwin-install-action@master | ||||||||
with: | ||||||||
packages: cmake gcc-fortran make ninja perl zlib-devel | ||||||||
|
||||||||
- name: Configure | ||||||||
run: | | ||||||||
export PATH=/usr/bin:$PATH | ||||||||
mkdir build | ||||||||
cd build | ||||||||
cmake -G Ninja \ | ||||||||
-DCMAKE_BUILD_TYPE=${{ inputs.build_mode }} \ | ||||||||
-D BUILD_SHARED_LIBS:BOOL=OFF \ | ||||||||
.. | ||||||||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||||||||
|
||||||||
- name: Build | ||||||||
run: | | ||||||||
export PATH=/usr/bin:$PATH | ||||||||
cd build | ||||||||
ctest -T Build | ||||||||
Comment on lines
+41
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' | ||||||||
|
||||||||
- name: Test | ||||||||
run: | | ||||||||
export PATH=/usr/bin:$PATH | ||||||||
cd build | ||||||||
ctest -T Test | ||||||||
Comment on lines
+48
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, it's give and take. ❤️ (Cygwin via autotools was already tested in matio via Appveyor.) |
||||||||
shell: C:\cygwin\bin\bash.exe -eo pipefail -o igncr '{0}' |
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.