-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.52 KB
/
testwindows.yml
File metadata and controls
63 lines (52 loc) · 1.52 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
name: Test on Windows
on:
pull_request:
branches: [ main ]
paths:
- 'include/**'
- 'src/**'
- 'tests/**'
- 'tools/**'
- 'meson.build'
workflow_dispatch:
jobs:
build-and-asan:
name: Test on Windows
runs-on: windows-latest
steps:
- name: Intro
run: echo "Branch ${{ github.ref }} on repository ${{ github.repository }}"
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: pip install meson ninja
- name: Call build and test script
shell: cmd
# test ^<buildtype^> ^<platform^> - Run the unit tests for the specified build type and platform
# ^<buildtype^> is one of "release" or "debug"
# ^<platform^> is one of "x86" or "x64"
run: |
"tools\make_vs.bat" test debug x64
- name: Prepare MSVC
if: false
uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
- name: Configure build directories
if: false
run: |
meson setup --buildtype=debug build.asan -Db_sanitize=address
- name: Build and run ASAN tests
if: false
run: meson test -C build.asan
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: build-dirs
path: |
# build.asan/
build/x64-windows/debug/