-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 2.45 KB
/
Copy pathci.yml
File metadata and controls
65 lines (55 loc) · 2.45 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: build (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
# Cross-platform: the shared rendering core + the Avalonia shell (which uses the
# native per-OS webview, Avalonia.Controls.WebView) must build on every OS.
# Building the shell pulls MarkdownPointer.Rendering and SlideKit transitively.
- name: Build Avalonia shell (+ Rendering, SlideKit)
run: dotnet build MarkdownPointer.Avalonia/MarkdownPointer.Avalonia.csproj -c Release
# Cross-platform unit tests (pure managed; no WebView2 / WPF).
- name: Test SlideKit
run: dotnet test SlideKit.Tests/SlideKit.Tests.csproj -c Release
# Windows-only: the WPF app, the MCP server, and their tests target net10.0-windows.
- name: Build + test Windows-only projects
if: runner.os == 'Windows'
shell: pwsh
run: |
dotnet build MarkdownPointer/MarkdownPointer.App.csproj -c Release
dotnet build MarkdownPointer.Mcp/MarkdownPointer.Mcp.csproj -c Release
dotnet test MarkdownPointer.Tests/MarkdownPointer.Tests.csproj -c Release
smoke-linux:
name: smoke (ubuntu · WebKitGTK headless)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
# Avalonia.Controls.NativeWebView on Linux is WebKitGTK (libwebkit2gtk-4.1) over GTK3;
# xvfb provides a virtual display so the GUI app can run on a headless runner.
- name: Install WebKitGTK + Xvfb
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libwebkit2gtk-4.1-0 libgtk-3-0 xvfb
# --smoke renders the sample via the shared core, drives a page->host bridge round-trip
# on the real native webview, and exits 0 on success / 1 on timeout. This verifies the
# point-and-prompt JS<->WebKitGTK<->C# bridge actually works on Linux.
- name: Headless smoke (render + bridge round-trip on WebKitGTK)
run: xvfb-run -a dotnet run --project MarkdownPointer.Avalonia/MarkdownPointer.Avalonia.csproj -c Release -- --smoke