-
-
Notifications
You must be signed in to change notification settings - Fork 51
68 lines (54 loc) · 1.72 KB
/
MonoAotValidation.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
name: Mono Aot Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
strategy:
max-parallel: 1
matrix:
include:
- os: ubuntu-latest
rid: linux-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: Install Mono
run: sudo apt install mono-complete
- name: Restore dependencies
working-directory: src
run: dotnet restore
- name: Build
working-directory: src/Tests/CompileTests/NativeAot
run: dotnet build -c Release
- name: Run (No AOT)
working-directory: src/Tests/CompileTests/NativeAot/bin/Release/net472
run: mono NativeAot.exe
- name: AOT Compile mscorlib
run: sudo mono -O=all --aot=full /usr/lib/mono/4.5/mscorlib.dll
- name: AOT Compile Other Libs
run: for i in /usr/lib/mono/gac/*/*/*.dll; do sudo mono -O=all --aot=full $i; done
- name: AOT Exes
working-directory: src/Tests/CompileTests/NativeAot/bin/Release/net472
run: mono -O=all --aot=full *.exe
- name: AOT DLLs
working-directory: src/Tests/CompileTests/NativeAot/bin/Release/net472
run: mono -O=all --aot=full *.dll
- name: Run (AOT)
working-directory: src/Tests/CompileTests/NativeAot/bin/Release/net472
run: mono --full-aot NativeAot.exe
- name: Upload Files
uses: actions/upload-artifact@v4
with:
name: assembly
path: src/Tests/CompileTests/NativeAot/bin/**/*.*