summaryrefslogtreecommitdiffstats
path: root/.github/workflows/msys2-auto.yml
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2024-03-14 14:16:53 (GMT)
committerGitHub <noreply@github.com>2024-03-14 14:16:53 (GMT)
commit112f445019484597a0add53e78970323713213fb (patch)
tree40345174ee201c93203f2b9063f95860f3d6f495 /.github/workflows/msys2-auto.yml
parent782c0e5a8ce1970cdcff14e3fac5175aca89cf57 (diff)
downloadhdf5-112f445019484597a0add53e78970323713213fb.zip
hdf5-112f445019484597a0add53e78970323713213fb.tar.gz
hdf5-112f445019484597a0add53e78970323713213fb.tar.bz2
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
Diffstat (limited to '.github/workflows/msys2-auto.yml')
-rw-r--r--.github/workflows/msys2-auto.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/msys2-auto.yml b/.github/workflows/msys2-auto.yml
new file mode 100644
index 0000000..4ea2da8
--- /dev/null
+++ b/.github/workflows/msys2-auto.yml
@@ -0,0 +1,66 @@
+name: hdf5 dev Autotools MSys2
+
+on:
+ workflow_call:
+ inputs:
+ build_mode:
+ description: "release vs. debug build"
+ required: true
+ type: string
+ build_option:
+ description: "--enable-production or --disable-production"
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+jobs:
+ msys2_build_and_test:
+ 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: Get Sources
+ uses: actions/checkout@v4.1.1
+
+ - name: '${{ matrix.icon }} Setup MSYS2'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{matrix.sys}}
+ update: true
+ install: >-
+ git
+ autotools
+ pacboy: >-
+ toolchain:p
+ libjpeg-turbo:p
+
+ - name: Autotools Configure
+ run: |
+ sh ./autogen.sh
+ mkdir "$GITHUB_WORKSPACE/build"
+ cd "$GITHUB_WORKSPACE/build"
+ LDFLAGS="-lws2_32" $GITHUB_WORKSPACE/configure \
+ ${{ inputs.build_option }} \
+ --disable-netcdf \
+ --enable-static-exec
+
+ - name: Autotools Build
+ run: |
+ make -j3
+ working-directory: $GITHUB_WORKSPACE/build
+
+ - name: Autotools Run Tests
+ run: |
+ make check -j
+ working-directory: $GITHUB_WORKSPACE/build