-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (71 loc) · 1.99 KB
/
~dotnet.yml
File metadata and controls
73 lines (71 loc) · 1.99 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
72
73
on:
workflow_call:
inputs:
is-release-build:
type: boolean
description: Whether the version is a prerelease or full release
required: false
env:
IS_RELEASE_BUILD: ${{ inputs.is-release-build }}
jobs:
dotnet:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v4
with:
path: dist/.organize
- run: dotnet build/bin/Debug/publish/_build.dll DotNet
shell: bash
- uses: actions/upload-artifact@v4
with:
name: nupkgs
path: |
lib/dotnet/**/*.nupkg
dotnet-test:
strategy:
fail-fast: false
matrix:
include:
- runs-on: ubuntu-latest
architecture: x64
framework: net9.0
- runs-on: macos-latest
architecture: arm64
framework: net9.0
- runs-on: windows-latest
architecture: x64
framework: net9.0
- runs-on: windows-latest
architecture: x64
framework: net48
runs-on: ${{ matrix.runs-on }}
needs: [dotnet]
steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v4
with:
name: nupkgs
path: dist/.organize/nupkgs
- run: dotnet build/bin/Debug/publish/_build.dll DotNetTest --architecture ${{ matrix.architecture }} --framework ${{ matrix.framework }}
shell: bash
- uses: actions/upload-artifact@v4
if: always()
with:
name: dotnettest-${{ matrix.runs-on }}-${{ matrix.architecture }}--${{ matrix.framework }}
path: |
test/test-outputs/**/*.*