-
Notifications
You must be signed in to change notification settings - Fork 40
81 lines (74 loc) · 1.99 KB
/
msys2.yml
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
name: MSYS2 CI
on:
workflow_dispatch:
schedule:
- cron: '15 09 * * *' # Run at in the early hours of the morning (UTC)
push:
branches:
- 'msys2/**'
- 'msys/**'
- 'msys2-**'
- 'msys-**'
- 'mingw64/**'
- 'mingw/**'
- 'mingw64-**'
- 'mingw-**'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
include:
- { msystem: MINGW64, env: x86_64, gen: "MinGW Makefiles" }
- { msystem: MINGW64, env: x86_64, gen: "MSYS Makefiles" }
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.msystem}}
install: >-
git
make
cmake
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-cmake
mingw-w64-${{matrix.env}}-ninja
mingw-w64-${{matrix.env}}-zeromq
mingw-w64-${{matrix.env}}-boost
- uses: actions/checkout@v4
with:
submodules: true
if: github.event_name != 'schedule'
- name: Checkout develop branch
uses: actions/checkout@v4
with:
submodules: true
ref: develop
if: github.event_name == 'schedule'
- name: Build HELICS
env:
CMAKE_GENERATOR: ${{matrix.gen}}
DISABLE_INTERFACES: "Java"
DISABLE_EXAMPLES: "true"
CXX_STANDARD: 20
#ZMQ_SUBPROJECT: "true"
#ZMQ_FORCE_SUBPROJECT: "true"
run: |
unset VCPKG_ROOT
source scripts/setup-helics-ci-options.sh
mkdir -p build && cd build
../scripts/ci-build.sh
- name: Run tests
working-directory: build
env:
TEST_TYPE: "ci"
CI_TEST_MATCH: "core-ci-tests"
run: |
source ../scripts/setup-helics-ci-options.sh
export CTEST_OPTIONS="--output-on-failure"
echo "Running CI tests with flags ${CI_TEST_FLAGS}"
../scripts/run-ci-tests.sh ${CI_TEST_FLAGS}