Skip to content

Commit

Permalink
fix: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ronimizy committed May 1, 2024
1 parent 5266645 commit ad28c10
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,24 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore
if: steps.cache-tests.output.cache-hit != 'true'
run: dotnet restore
- name: move nuget config
if: steps.cache-tests.outputs.cache-hit != 'true'
run: |
mkdir .tmp-nuget-config
mv NuGet.config .tmp-nuget-config
- name: build sources
if: steps.cache-tests.outputs.cache-hit != 'true'
run: |
for csproj in $(find src | grep csproj$)
do
dotnet build -c Release "$csproj"
done
- name: move nuget config back
run: |
mv .tmp-nuget-config/NuGet.config .
rm -rf .tmp-nuget-config
- name: Build
if: steps.cache-tests.outputs.cache-hit != 'true'
Expand Down

0 comments on commit ad28c10

Please sign in to comment.