-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (82 loc) · 2.92 KB
/
Copy pathensure-aot-build.yml
File metadata and controls
94 lines (82 loc) · 2.92 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Validate AOT compatibility
on:
push:
branches: [ 'main*' ]
paths-ignore:
- '**.md'
pull_request:
branches: [ 'main*' ]
paths-ignore:
- '**.md'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: 'true'
DOTNET_NOLOGO: 'true'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true'
jobs:
aot-test:
name: AOT smoke (${{ matrix.tfm }}, ${{ matrix.runner.name }})
strategy:
fail-fast: false
matrix:
tfm: [ 'net10.0', 'net11.0' ]
runner:
- name: Windows x64
os: windows-latest
- name: Windows arm64
os: windows-11-arm
- name: Linux x64
os: ubuntu-latest
- name: Linux arm64
os: ubuntu-24.04-arm
- name: macOS x64
os: macos-15-intel
- name: macOS arm64
os: macos-15
runs-on: ${{ matrix.runner.os }}
timeout-minutes: 20
# determine dotnet SDK version from the TFM (job-level env to avoid schema ambiguity)
env:
DOTNET_VERSION: ${{ matrix.tfm == 'net11.0' && '11.0.100-preview.6.26359.118' || '10.0.x' }}
steps:
- uses: actions/checkout@v7
- name: Setup dotnet
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
${{ env.DOTNET_VERSION }}
11.0.100-preview.6.26359.118
- name: Cache NuGet packages
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.tfm }}-nuget-${{ hashFiles('global.json', 'Directory.Build.props', 'Tests/AotCompatibility.TestApp/AotCompatibility.TestApp.csproj', 'NTComponents/NTComponents.csproj', 'NTComponents.Analyzers/NTComponents.Analyzers.csproj') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-${{ matrix.tfm }}-nuget-
${{ runner.os }}-${{ runner.arch }}-nuget-
- name: Display runner architecture
shell: pwsh
run: |
dotnet --info
[System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture
[System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
- name: Verify Python for WebAssembly tools
if: runner.os == 'Linux'
shell: pwsh
run: python3 --version
- name: Setup Node for Playwright browser install
if: runner.os == 'Linux'
uses: actions/setup-node@v7
with:
node-version: 24.x
- name: Install Chromium for AOT browser smoke
if: runner.os == 'Linux'
shell: pwsh
run: npx --yes playwright@1.60.0 install --with-deps --no-shell chromium
- name: Restore WebAssembly workloads
shell: pwsh
run: dotnet workload restore Tests/AotCompatibility.TestApp/AotCompatibility.TestApp.csproj --skip-manifest-update
- name: Publish AOT smoke app, assert static analysis warning count, and browser-smoke the app
shell: pwsh
run: ./test-aot-compatibility.ps1 -frameworks "${{ matrix.tfm }}"