Skip to content

Commit

Permalink
test cache dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yatima1460 committed May 15, 2024
1 parent 2d8acff commit 390aa1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true

- name: Build win-x64
run: Build_win-x64.bat
Expand Down
6 changes: 6 additions & 0 deletions Build_win-x64.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@echo off

dotnet restore WinForms\WinForms.csproj --locked-mode
if %ERRORLEVEL% neq 0 (
echo Restore failed with error code %ERRORLEVEL%.
exit /b %ERRORLEVEL%
)

dotnet clean -maxCpuCount WinForms\WinForms.csproj
if %ERRORLEVEL% neq 0 (
echo Cleaning failed with error code %ERRORLEVEL%.
Expand Down

0 comments on commit 390aa1c

Please sign in to comment.