-
Notifications
You must be signed in to change notification settings - Fork 324
117 lines (101 loc) · 3.08 KB
/
build-windows-mingw.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: build-windows-mingw
on:
workflow_dispatch:
push:
pull_request:
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:
- name: get CPU name
shell: pwsh
run : |
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
- name: checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: install dependencies
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
install: >-
base-devel
git
pacboy: >-
cc:p
fc:p
cmake:p
msmpi:p
openblas:p
parmetis:p
qwt-qt5:p
qt5-script:p
- name: install MSMPI
uses: mpi4py/setup-mpi@v1
with:
mpi: msmpi
- name: configure
# Downgrade incompatible-pointer-types to a warning to work around
# build error of Zoltan with newer GCC.
run: |
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
cmake \
-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_MPI=ON \
-DMPI_TEST_MAXPROC=2 \
-DMPIEXEC_EXECUTABLE="$(cygpath -m "${MSMPI_BIN}")/mpiexec.exe" \
-DWITH_Zoltan=ON \
-DCMAKE_C_FLAGS="-Wno-error=incompatible-pointer-types" \
-DParMetis_LIBRARIES="$(pkg-config --libs parmetis)" \
-DParMetis_INCLUDE_DIR="$(pkg-config --cflags parmetis)" \
-DWITH_Mumps=OFF \
-DWITH_ELMERGUI=ON \
-DCREATE_PKGCONFIG_FILE=ON \
..
- 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
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: |
cd ${GITHUB_WORKSPACE}/build
ctest -L quick -j$(nproc)
- name: re-run tests
if: always() && (steps.run-ctest.outcome == 'failure')
timeout-minutes: 60
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: |
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::"