Skip to content

Commit

Permalink
ci(msys2): add auto action
Browse files Browse the repository at this point in the history
close #181
  • Loading branch information
hyoklee committed Mar 22, 2024
1 parent 83313a8 commit 9f4d57f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/msys2-auto.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: hdf5 dev Autotools MSys2
name: msys2 auto

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
push:
pull_request:
branches: [ develop ]
paths-ignore:
- '.github/CODEOWNERS'
- '.github/FUNDING.yml'
- 'doc/**'
- 'release_docs/**'
- 'ACKNOWLEDGEMENTS'
- 'COPYING**'
- '**.md'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

jobs:
msys2_build_and_test:
runs-on: windows-latest
Expand All @@ -25,12 +31,12 @@ jobs:
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 }
- { icon: '🟧', sys: clang64 }
name: ${{ matrix.icon }} msys2-${{ matrix.sys }}-${{ inputs.build_mode }}
name: ${{ matrix.icon }} msys2-${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Get Sources
- name: Get
uses: actions/[email protected]

- name: '${{ matrix.icon }} Setup MSYS2'
Expand All @@ -43,24 +49,20 @@ jobs:
autotools
pacboy: >-
toolchain:p
libjpeg-turbo:p
- name: Autotools Configure
- name: 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
LDFLAGS="-lws2_32" $GITHUB_WORKSPACE/configure
- name: Autotools Build
- name: Build
run: |
make -j3
make -j
working-directory: $GITHUB_WORKSPACE/build

- name: Autotools Run Tests
run: |
make check -j
working-directory: $GITHUB_WORKSPACE/build
# - name: Test
# run: |
# make check -j
# working-directory: $GITHUB_WORKSPACE/build
4 changes: 2 additions & 2 deletions WATCHME.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
| FreeBSD | [![fbsd](https://github.com/hyoklee/hdf5/actions/workflows/fbsd.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd.yml) [![fbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-f-j.yml) [![fbsd lf j](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-lf-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/fbsd-lf-j.yml) [![arm64 fbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/arm64-fbsd-f-j.yml) |
| NetBSD | [![nbsd](https://github.com/hyoklee/hdf5/actions/workflows/nbsd.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd.yml) [![nbsd f](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f.yml) [![nbsd f -sh](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-sh.yml) [![nbsd f j](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-j.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/nbsd-f-j.yml) |
| macOS | [![mac14 ninja h j ompi](https://github.com/hyoklee/hdf5/actions/workflows/mac14-ninja-h-j-ompi-cd.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/mac14-ninja-h-j-ompi-cd.yml) |
| MSYS2 | [![msys2](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml) |
| Cygwin | [![auto](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml) [![cmake](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml) |
| MSYS2 | [![msys2](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/msys2.yml) [![msys2 auto](https://github.com/hyoklee/hdf5/actions/workflows/msys2-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/msys2-auto.yml) |
| Cygwin | [![cyg](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg.yml) [![cyg auto](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/cyg-auto.yml) |
| iOS | [![mac13 ios](https://github.com/hyoklee/hdf5/actions/workflows/ios.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/ios.yml) |
| Windows | [![win ninja icx](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx.yml) [![win ninja icx ifx p sf](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p-sf.yml/badge.svg)](https://github.com/hyoklee/hdf5/actions/workflows/win-ninja-icx-f-p-sf.yml) |

Expand Down

0 comments on commit 9f4d57f

Please sign in to comment.