forked from sccn/liblsl
-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (70 loc) · 2.06 KB
/
Copy pathmingw_static.yml
File metadata and controls
78 lines (70 loc) · 2.06 KB
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
name: MinGW Windows static test
on:
push:
branches: ['*']
paths:
- 'src'
- 'include'
- 'cmake'
# - '!docs/**'
# - '!.github/**'
- '.github/workflows/mingw_static.yml'
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: MinGW batteries-included
strategy:
matrix:
include:
# - { sys: mingw64, env: x86_64 }
# - { sys: mingw32, env: i686 }
- { sys: ucrt64, env: ucrt-x86_64 }
# - { sys: clang64, env: clang-x86_64 }
runs-on: windows-latest
defaults:
run:
shell: 'msys2 {0}'
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
cache: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Configure CMake
run: |
cmake --version
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${PWD}/install \
-DLSL_UNITTESTS=ON \
-DLSL_BUILD_STATIC=ON \
-Dlslgitrevision=${{ github.sha }} \
-Dlslgitbranch=${{ github.ref }} \
-DLSL_OPTIMIZATIONS=OFF \
-G Ninja
- name: make
run: cmake --build build --target install --config Release -j --verbose
- name: upload install dir
uses: actions/upload-artifact@master
with:
name: mingw_artifacts
path: install
# run internal tests, ignore test failures on docker (missing IPv6 connectivity)
- name: unit tests (internal functions)
run: 'install/bin/lsl_test_internal --order rand --wait-for-keypress never --durations yes'
timeout-minutes: 5
- name: unit tests (exported functions)
run: install/bin/lsl_test_exported --wait-for-keypress never --durations yes
timeout-minutes: 5