From c9a376d332aee166b3dd48379801f6c9bcb81a35 Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Thu, 22 Oct 2026 14:40:17 +0200 Subject: [PATCH] ci: install only the .NET SDK in the Unsupported AOT jobs The Unsupported AOT jobs run after the whole build-sentry matrix, so their time adds to every build. They only publish a console app against the packages from the macOS job, but they ran the full Setup Environment with Java, the Android SDK, Mono and workloads. version7 dropped that in #5746, and this brings the same job to main. Co-Authored-By: Claude Opus 5.5 --- .github/actions/environment/action.yml | 8 -------- .github/workflows/build.yml | 23 ++++++++++++++++------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml index c071f2ec3f..3754453a45 100644 --- a/.github/actions/environment/action.yml +++ b/.github/actions/environment/action.yml @@ -30,14 +30,6 @@ runs: shell: bash run: sudo ./scripts/install-libssl1.sh - - name: Install Linux ARM 32-bit dependencies - if: ${{ matrix.rid == 'linux-arm' }} - shell: bash - run: | - sudo dpkg --add-architecture armhf - sudo apt-get update - sudo apt-get install -y gcc-arm-linux-gnueabihf libc6:armhf - # See https://github.com/actions/runner-images/blob/main/images/macos/xcode-27-arm64-Readme.md#xcode # Also https://github.com/dotnet/macios/issues/21762#issuecomment-3424033859 (don't reference symlinks) - name: Pin the Xcode Version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0092e2cb96..0d715f3cc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -365,6 +365,9 @@ jobs: needs: build-sentry name: Unsupported AOT (${{ matrix.rid }}) runs-on: ${{ matrix.os }} + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_NOLOGO: 1 strategy: fail-fast: false @@ -375,18 +378,24 @@ jobs: - os: windows-latest rid: win-x86 + # This job is on the critical path, after the whole build-sentry matrix. aot.Tests.ps1 only publishes a + # console app against the packages from the macOS build, so it needs the .NET SDK but not the full + # Setup Environment (Java, Android SDK, Mono, workloads). steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - submodules: recursive - - name: Setup Environment - uses: ./.github/actions/environment + - name: Install Linux ARM 32-bit dependencies + if: ${{ matrix.rid == 'linux-arm' }} + run: | + sudo dpkg --add-architecture armhf + sudo apt-get update + sudo apt-get install -y gcc-arm-linux-gnueabihf libc6:armhf - - name: Build Native Dependencies - if: ${{ !env.NO_MOBILE }} - uses: ./.github/actions/buildnative + - name: Install .NET SDK + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + with: + global-json-file: global.json - name: Fetch NuGet Packages uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2