Skip to content

Commit a150c53

Browse files
authored
Disable CodeQL for OSX ARM64 (#403)
1 parent 8bf21b6 commit a150c53

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.ado/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,15 @@ extends:
142142

143143
variables:
144144
DotNetMoniker: net8.0
145+
${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}:
146+
ONEES_ENFORCED_CODEQL_ENABLED: false
145147

146148
templateContext:
147149
outputs:
148150
- output: pipelineArtifact
149151
pathtoPublish: $(Build.ArtifactStagingDirectory)
150152
artifactName: ${{ MatrixEntry.TargetRuntime }}
151153
targetPath: $(Build.StagingDirectory)/AOT/${{ MatrixEntry.TargetRuntime }}
152-
variables:
153-
${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}:
154-
Codeql.Enabled: false
155154

156155
pool: ${{ MatrixEntry.Pool }}
157156

@@ -224,10 +223,9 @@ extends:
224223
- job: test_${{ MatrixEntry.Name }}
225224
displayName: Test ${{ MatrixEntry.TargetRuntime }} ${{ MatrixEntry.DotnetVersion }}
226225

227-
templateContext:
228-
variables:
229-
${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}:
230-
Codeql.Enabled: false
226+
variables:
227+
${{ if and( variables.DisableOsxArm64CodeQL, eq( MatrixEntry.TargetRuntime, 'osx-arm64' )) }}:
228+
ONEES_ENFORCED_CODEQL_ENABLED: false
231229

232230
pool: ${{ MatrixEntry.Pool }}
233231

0 commit comments

Comments
 (0)