Debian Codegraph @

.github/workflows/windows.yml

raw
1 name: windows
2
3 on:
4 push:
5 branches:
6 - master
7 - 'releases/**'
8 pull_request:
9 branches:
10 - master
11 - 'releases/**'
12
13 # Set permissions at the job level.
14 permissions: {}
15
16 jobs:
17 windows:
18 runs-on: windows-2022
19 permissions:
20 contents: read
21 strategy:
22 matrix:
23 cc: ['cl', 'clang-cl']
24 env:
25 CC: ${{matrix.cc}}
26 steps:
27 - uses: actions/checkout@v5
28 with:
29 persist-credentials: false
30 - uses: actions/setup-python@v5
31 with:
32 python-version: '3.12'
33 - name: Install dependencies
34 shell: cmd
35 run: |
36 # Jinja2 is needed for merge-modes tests
37 python -m pip install --upgrade meson Jinja2
38 choco install -y winflexbison3
39 - name: Setup
40 shell: cmd
41 run: |
42 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
43 meson setup --backend=vs -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
44 - name: Build
45 shell: cmd
46 run: |
47 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
48 meson compile -C build
49 - name: Test
50 run:
51 meson test -C build --print-errorlogs