Skip to content

Commit

Permalink
Update VS CI
Browse files Browse the repository at this point in the history
The VS ecosystem is poorly documented, specially for CI use. Although
the old VS CI code worked at some point, the ecosystem moved and broke
it. It has been largely rewritten to work in the present day. Cross
compilation testing is missing.
  • Loading branch information
guijan committed Dec 27, 2024
1 parent 69e9eab commit 39bfbfd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 29 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,26 +256,21 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
cc: [clang, msvc]
api: [win32, uwp]
arch: [aarch64, amd64]
cc: [cl, clang-cl]
uwp: [true, false]
steps:
- uses: actions/[email protected]
- run: pip install meson
- run: pip install meson ninja
- uses: actions/[email protected]
- uses: ilammy/[email protected]
with:
uwp: ${{ matrix.uwp }}
- name: build
run: |
if ("${{matrix.api}}" -eq "uwp") {
$uwp = "--cross-file=.github/workflows/meson-vs-uwp.txt"
}
if ("${{matrix.arch}}" -eq "aarch64") {
$arm = "--cross-file=.github/workflows/meson-vs-aarch64.txt"
}
# Don't do debug builds because that triggers a Windows bug:
# https://developercommunity.visualstudio.com/t/_setmaxstdio-hangs-the-program-if-the/10164855?space=62&q=setmaxstdio&viewtype=all
meson setup $uwp $arm $build $asan --buildtype=release --backend=vs `
--cross-file .github/workflows/meson-vs-${{matrix.cc}}.txt `
-Dtest_system=true build
CC=${{ matrix.cc }} meson setup build --buildtype=release `
-Dtest_system=true
meson compile -C build
- name: test
run: meson test --no-suite system -C build
Expand All @@ -284,5 +279,5 @@ jobs:
- uses: actions/[email protected]
if: always()
with:
name: meson-logs-vs-${{matrix.cc}}-${{matrix.api}}-${{matrix.arch}}
name: meson-logs-vs-${{matrix.cc}}-${{matrix.uwp}}
path: build/meson-logs
5 changes: 0 additions & 5 deletions .github/workflows/meson-vs-aarch64.txt

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/meson-vs-clang.txt

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/meson-vs-msvc.txt

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/meson-vs-uwp.txt

This file was deleted.

0 comments on commit 39bfbfd

Please sign in to comment.