Skip to content

chore(deps): bump Submodules/NT.BlazorAnalyzer from 05a3e0a to 297079b #287

chore(deps): bump Submodules/NT.BlazorAnalyzer from 05a3e0a to 297079b

chore(deps): bump Submodules/NT.BlazorAnalyzer from 05a3e0a to 297079b #287

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 }}"