From f60a40b8ff6c7ba044ede8098723ea3aea7a7fc9 Mon Sep 17 00:00:00 2001 From: Vladimir Morozov Date: Wed, 27 Nov 2024 08:03:01 -0800 Subject: [PATCH] Disable CodeQL for OSX ARM64 --- .ado/publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.ado/publish.yml b/.ado/publish.yml index 32cdc17..5538798 100644 --- a/.ado/publish.yml +++ b/.ado/publish.yml @@ -142,6 +142,8 @@ extends: variables: DotNetMoniker: net8.0 + ${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}: + ONEES_ENFORCED_CODEQL_ENABLED: false templateContext: outputs: @@ -149,9 +151,6 @@ extends: pathtoPublish: $(Build.ArtifactStagingDirectory) artifactName: ${{ MatrixEntry.TargetRuntime }} targetPath: $(Build.StagingDirectory)/AOT/${{ MatrixEntry.TargetRuntime }} - variables: - ${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}: - Codeql.Enabled: false pool: ${{ MatrixEntry.Pool }} @@ -224,10 +223,9 @@ extends: - job: test_${{ MatrixEntry.Name }} displayName: Test ${{ MatrixEntry.TargetRuntime }} ${{ MatrixEntry.DotnetVersion }} - templateContext: - variables: - ${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}: - Codeql.Enabled: false + variables: + ${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}: + ONEES_ENFORCED_CODEQL_ENABLED: false pool: ${{ MatrixEntry.Pool }}