Skip to content

Commit

Permalink
Merge pull request #507 from mmuetzel/ci
Browse files Browse the repository at this point in the history
CI rules for MinGW with packages and tools from MSYS2
  • Loading branch information
raback authored Aug 2, 2024
2 parents 4d1b02e + 0e0354e commit 0fcda09
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 29 deletions.
96 changes: 70 additions & 26 deletions .github/workflows/build-windows-mingw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,96 @@ on:
push:
pull_request:

concurrency: ci-${{ github.ref }}
concurrency: ci-windows-mingw-${{ github.ref }}

jobs:

windows-mingw:

runs-on: windows-latest

defaults:
run:
shell: msys2 {0}


strategy:
# Allow other runners in the matrix to continue if some fail
fail-fast: false

matrix:
# msystem: [MINGW64, CLANG64]
msystem: [MINGW64]

steps:
- uses: actions/checkout@v4

- uses: msys2/setup-msys2@v2
- name: get CPU name
shell: pwsh
run : |
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
- name: checkout repository
uses: actions/checkout@v4

- name: install dependencies
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
msystem: ${{ matrix.msystem }}
update: true
install: >-
git
mingw-w64-x86_64-gcc
mingw-w64-x86_64-gcc-fortran
mingw-w64-x86_64-cmake
mingw-w64-x86_64-openblas
mingw-w64-x86_64-parmetis
base-devel
- name: Configure
git
pacboy: >-
cc:p
fc:p
cmake:p
openblas:p
parmetis:p
qwt-qt5:p
qt5-script:p
- name: configure
run: |
mkdir build
cd build
cmake .. -G "MSYS Makefiles" \
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
cmake \
-G "MSYS Makefiles" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/usr" \
-DCPACK_BUNDLE_EXTRA_WINDOWS_DLLS=OFF \
-DBLA_VENDOR="OpenBLAS" \
-DWITH_OpenMP=ON \
-DWITH_LUA=ON \
-DWITH_Zoltan=OFF \
-DWITH_Mumps=OFF \
-DWITH_ELMERGUI=ON \
-DCREATE_PKGCONFIG_FILE=ON \
-DWITH_MPI=OFF
- name: Build
-DWITH_MPI=OFF \
..
- name: build
run: |
cd ${GITHUB_WORKSPACE}/build
cmake --build . -j$(nproc)
- name: install
run: |
cd ${GITHUB_WORKSPACE}/build
cmake --install .
- name: check
id: run-ctest
timeout-minutes: 150
run: |
cd build
cmake --build .
- name: Test
cd ${GITHUB_WORKSPACE}/build
ctest -L quick -j$(nproc)
- name: re-run tests
if: always() && (steps.run-ctest.outcome == 'failure')
timeout-minutes: 60
run: |
cd build
ctest -L quick
cd ${GITHUB_WORKSPACE}/build
echo "::group::Re-run failing tests"
ctest --rerun-failed --output-on-failure || true
echo "::endgroup::"
echo "::group::Log from these tests"
[ ! -f Testing/Temporary/LastTest.log ] || cat Testing/Temporary/LastTest.log
echo "::endgroup::"
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:

concurrency: ci-${{ github.ref }}
concurrency: ci-ubuntu-${{ github.ref }}

jobs:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-clang-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run job every Thursday at 09:50 UTC
- cron: '50 09 * * 4'

concurrency: ci-${{ github.ref }}
concurrency: ci-ubuntu-clang-full-${{ github.ref }}

jobs:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-gcc-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run job every Tuesday at 09:50 UTC
- cron: '50 09 * * 2'

concurrency: ci-${{ github.ref }}
concurrency: ci-ubuntu-gcc-full-${{ github.ref }}

jobs:

Expand Down

0 comments on commit 0fcda09

Please sign in to comment.