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 ad28c10 commit c678eb0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
- 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'
run: dotnet build -c Debug
# - 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: Remove .Reflect tests
if: steps.cache-tests.outpust.cache-hit != 'true'
run: rm -rf tests/SourceKit.Reflect.Tests

- name: Test
if: steps.cache-tests.outputs.cache-hit != 'true'
run: dotnet test -c Debug --no-restore --no-build
run: dotnet test -c Debugi

0 comments on commit c678eb0

Please sign in to comment.