Repository navigation
71 lines (58 loc) · 2.34 KB
/
Copy pathci.yml
File metadata and controls
71 lines (58 loc) · 2.34 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
name: CI
# Continuous integration: compiles the Avalonia-first main solution in Debug and
# Release on Windows and compiles the cross-platform projects for Linux. Warnings
# are treated as errors so the "0 warnings / 0 errors" policy is enforced. The
# WPF reference (SimpleLauncher.Wpf.Reference.sln) is built locally on demand,
# not here. The test suites are intentionally NOT run in CI - they include live
# endpoints, real app launches and real mounts; run them locally (see AGENTS.md
# and docs/14-testing.md for the fast/slow split).
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-windows:
name: Build solution (Windows)
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up .NET SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: '11.0.x'
- name: Build Debug (warnings as errors)
run: dotnet build SimpleLauncher.sln -c Debug --nologo -warnaserror
- name: Build Release (warnings as errors)
run: dotnet build SimpleLauncher.sln -c Release --nologo -warnaserror
build-linux:
name: Build Avalonia net11.0 (Linux)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up .NET SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: '11.0.x'
- name: Build Avalonia Debug (warnings as errors)
run: dotnet build SimpleLauncher.Avalonia/SimpleLauncher.Avalonia.csproj -c Debug -f net11.0 --nologo -warnaserror
- name: Build Avalonia Release (warnings as errors)
run: dotnet build SimpleLauncher.Avalonia/SimpleLauncher.Avalonia.csproj -c Release -f net11.0 --nologo -warnaserror
# The app references the updater with ReferenceOutputAssembly=false, so
# building the app does not compile it. The Linux release publishes it,
# therefore build its Release configuration explicitly here.
- name: Build updater (warnings as errors)
run: dotnet build SimpleLauncher.Avalonia.Updater/SimpleLauncher.Avalonia.Updater.csproj -c Release -f net11.0 --nologo -warnaserror