-
Notifications
You must be signed in to change notification settings - Fork 386
78 lines (65 loc) · 2.09 KB
/
ci.yml
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
72
73
74
75
76
77
78
on: [push, pull_request, workflow_dispatch]
name: Build and test main solution
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyzer-build:
name: Build solution with analyzers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
- name: Debug build with analyzers
run: Dist/BuildDebug.sh -warnaserror -p:RunAnalyzersDuringBuild=true
- name: Release build with analyzers
run: Dist/BuildRelease.sh -warnaserror -p:RunAnalyzersDuringBuild=true
test:
name: Test
runs-on: ${{matrix.os.fullname}}
strategy:
fail-fast: false
matrix:
os:
- { prettyname: Windows, fullname: windows-latest }
- { prettyname: Linux, fullname: ubuntu-22.04 } # newer ubuntu versions don't ship with mono, so we need to pin for now, see https://github.com/actions/runner-images/issues/10636
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
- name: Test
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
shell: pwsh
package:
name: Build and package output
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8"
- name: Build solution
run: Dist/BuildRelease.sh
- name: Package (Linux)
run: Dist/Package.sh
- name: Upload Linux dev build
uses: actions/upload-artifact@v4
with:
name: BizHawk-dev-linux
path: packaged_output
- name: Package (Windows)
run: Dist/Package.sh windows-x64
- name: Upload Windows dev build
uses: actions/upload-artifact@v4
with:
name: BizHawk-dev-windows
path: packaged_output