diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ddd44b2..2f37a0b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -23,14 +23,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Clean - run: dotnet clean Jellyfin.Plugin.SRFPlay.sln --configuration Release || true + - name: Clean workspace + run: | + dotnet build-server shutdown || true + rm -rf */bin */obj - name: Restore dependencies run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained --disable-build-servers - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Release --verbosity normal diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 58e888b..b15c895 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -39,14 +39,16 @@ jobs: sed -i "s/^version:.*/version: \"${VERSION}\"/" build.yaml cat build.yaml - - name: Clean - run: dotnet clean Jellyfin.Plugin.SRFPlay.sln --configuration Release || true + - name: Clean workspace + run: | + dotnet build-server shutdown || true + rm -rf */bin */obj - name: Restore dependencies run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Release --no-restore --no-self-contained --disable-build-servers - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Release --verbosity normal diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 3e5faff..2e5c501 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -25,14 +25,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Clean - run: dotnet clean Jellyfin.Plugin.SRFPlay.sln --configuration Debug || true + - name: Clean workspace + run: | + dotnet build-server shutdown || true + rm -rf */bin */obj - name: Restore dependencies run: dotnet restore Jellyfin.Plugin.SRFPlay.sln - name: Build solution - run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Debug --no-restore --no-self-contained + run: dotnet build Jellyfin.Plugin.SRFPlay.sln --configuration Debug --no-restore --no-self-contained --disable-build-servers - name: Run tests run: dotnet test Jellyfin.Plugin.SRFPlay.sln --no-build --configuration Debug --verbosity normal --logger "trx;LogFileName=test-results.trx"