Repository navigation
58 lines (54 loc) · 1.39 KB
/
Copy pathmain.yml
File metadata and controls
58 lines (54 loc) · 1.39 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
TUNIT_DISABLE_LOGO: true
TUNIT_DISABLE_HTML_REPORTER: true
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
framework: [net10.0, net11.0]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
11.0.x
- name: Test
run: dotnet run -c Release --project Tests --framework ${{ matrix.framework }} --output Detailed
aot:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
TUNIT_DISABLE_LOGO: true
TUNIT_DISABLE_HTML_REPORTER: true
strategy:
matrix:
framework: [net10.0, net11.0]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
11.0.x
- name: Install Native AOT prerequisites
run: sudo apt-get update && sudo apt-get install -y clang zlib1g-dev
- name: Publish
run: dotnet publish Tests -c Release -f ${{ matrix.framework }} --use-current-runtime -p:PublishAot=true -o aot
- name: Test
run: ./aot/Tests --output Detailed