-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (53 loc) · 1.6 KB
/
dotnes.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
name: .NES
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: build
run: dotnet build -bl:build-debug.binlog && dotnet build -c Release -bl:build-release.binlog
- name: test
run: dotnet test --no-build --verbosity normal && dotnet test --no-build --verbosity normal -c Release
- name: samples
run: dotnet build samples/samples.sln -bl:samples-debug.binlog && dotnet build samples/samples.sln -c Release -bl:samples-release.binlog
- name: templates
run: |
dotnet new install bin/Release/dotnes.templates.*.nupkg && \
dotnet new nes --output samples/foo && \
dotnet build samples/foo/foo.csproj -bl:foo-debug.binlog && \
dotnet build samples/foo/foo.csproj -c Release -bl:foo-release.binlog
- name: shutdown
run: dotnet build-server shutdown
- name: upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: '*.binlog'
if-no-files-found: error
- name: upload ROMs
if: always()
uses: actions/upload-artifact@v4
with:
name: ROMs
path: |
samples/*/bin/**/*.nes
samples/*/bin/**/*.dll
if-no-files-found: error
- name: upload nupkgs
if: always()
uses: actions/upload-artifact@v4
with:
name: nupkgs
path: |
bin/Release/*.nupkg
if-no-files-found: error