Skip to content

Commit

Permalink
refactor: .sarif now builds conditionally onlly
Browse files Browse the repository at this point in the history
  • Loading branch information
VaclavElias committed May 29, 2024
1 parent 0a64c13 commit 2a7d0f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dotnet-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
$updatedCsprojContent = $settingsContent -replace '<Version>.*?</Version>', "<Version>${{ env.VERSION }}</Version>"
Set-Content -Path ${{ env.COMMON_SETTINGS_PATH }} -Value $updatedCsprojContent
- name: Create .sarif Directory
run: New-Item -ItemType Directory -Force -Path D:\.sarif
shell: pwsh
# Not needed as Directory.Build.props added a condition to this target
# - name: Create .sarif Directory
# run: New-Item -ItemType Directory -Force -Path D:\.sarif
# shell: pwsh

# Stride.CommunityToolkit
- name: Restore dependencies - Stride.CommunityToolkit
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Create .sarif Directory
run: New-Item -ItemType Directory -Force -Path D:\.sarif
shell: pwsh
# Not needed as Directory.Build.props added a condition to this target
# - name: Create .sarif Directory
# run: New-Item -ItemType Directory -Force -Path D:\.sarif
# shell: pwsh

# Stride.CommunityToolkit
- name: Restore Stride.CommunityToolkit dependencies
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<PropertyGroup Condition="'$(SolutionDir)' != ''">
<ErrorLog>$(SolutionDir)\.sarif\$(MSBuildProjectName).json</ErrorLog>
</PropertyGroup>
</Project>

0 comments on commit 2a7d0f4

Please sign in to comment.