-
-
Notifications
You must be signed in to change notification settings - Fork 51
77 lines (65 loc) · 1.83 KB
/
dotnet.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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- os: windows-2022
rid: win-x64
- os: ubuntu-22.04
rid: linux-x64
- os: macos-12
rid: osx-x64
runs-on: ${{ matrix.os }}
env:
AppVeyorBuild: true
steps:
- uses: actions/checkout@v2
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-quality: preview
dotnet-version: 9.0.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup .NET 7
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: src
run: dotnet restore
- name: Build
working-directory: src
run: dotnet build -c Release /p:SignAssembly=true
- name: E2E Test (JIT)
working-directory: src/Tests/FlatSharpEndToEndTests
run: dotnet test -c Release /p:SignAssembly=true --verbosity normal
- name: E2E Test (AOT)
working-directory: src/Tests/FlatSharpEndToEndTests
env:
BuildAot: 'true'
run: |
dotnet publish -c Release -f net9.0 -r ${{ matrix.rid }}
./bin/Release/net9.0/${{ matrix.rid }}/publish/FlatSharpEndToEndTests
- name: Compiler Test
working-directory: src/Tests/FlatSharpCompilerTests
run: dotnet test -c Release /p:SignAssembly=true --verbosity normal
- if: runner.os == 'Windows'
name: Upload Packages
uses: actions/upload-artifact@v4
with:
name: Packages
path: ./**/*.nupkg