Skip to content

Commit

Permalink
[ci] Only enable CodeQL on Windows build job (#224)
Browse files Browse the repository at this point in the history
Enabling CodeQL on macOS seems to be occasionally causing issues with
the Run Tests step:

    The argument -p:UseSharedCompilation=false is invalid. Please use the /help option to check the list of valid arguments.

We can avoid this by only enabling CodeQL on the Windows build job.
  • Loading branch information
pjcollins authored Jan 17, 2024
1 parent 2a2e64b commit b175674
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ parameters:
variables:
- name: DotNetCoreVersion
value: 6.0.x
- name: Codeql.Enabled
value: True

jobs:
- job: build
Expand All @@ -33,6 +31,7 @@ jobs:
vmImage: macOS-12
windows:
vmImage: windows-2022
Codeql.Enabled: true

pool:
vmImage: $(vmImage)
Expand Down

0 comments on commit b175674

Please sign in to comment.