diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be17b4ae9..8759a74ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,10 @@ jobs: dotnet-version: | 8.0.100 7.0.404 + - name: Restore Packages + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build library - run: dotnet build -c Release -v minimal DisCatSharp.sln + run: dotnet build -c Release -v minimal --no-restore DisCatSharp.sln - name: Test library run: dotnet test -v minimal -c Release --no-restore --no-build DisCatSharp.sln pack: @@ -49,8 +51,10 @@ jobs: dotnet-version: | 8.0.100 7.0.404 + - name: Restore Packages + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build library - run: dotnet build -c Release -v minimal DisCatSharp.sln + run: dotnet build -c Release -v minimal --no-restore DisCatSharp.sln - name: Publish library run: dotnet pack -c Release -v minimal --no-build --no-restore --include-symbols --include-source -o ./artifacts DisCatSharp.sln - name: Upload artifacts diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ba0e5a4ff..c59f438af 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,8 +35,10 @@ jobs: dotnet-version: | 8.0.100 7.0.404 + - name: Restore dependencies + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build run: | - dotnet build -c Release -v minimal --no-self-contained DisCatSharp.sln + dotnet build -c Release -v minimal --no-restore --no-self-contained DisCatSharp.sln - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index bda3f9e7f..6898984c2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -29,9 +29,9 @@ jobs: - name: Install DocFX run: dotnet tool update -g docfx - name: Restore packages - run: dotnet restore DisCatSharp.sln + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build library - run: dotnet build -c Release --no-restore -v minimal -f net7.0 DisCatSharp.sln + run: dotnet build -c Release --no-restore -v minimal -f net8.0 DisCatSharp.sln timeout-minutes: 7 continue-on-error: true #- name: Add Custom Plugins diff --git a/.github/workflows/documentation_test.yml b/.github/workflows/documentation_test.yml index 272892966..61aac5147 100644 --- a/.github/workflows/documentation_test.yml +++ b/.github/workflows/documentation_test.yml @@ -26,12 +26,12 @@ jobs: 8.0.100 7.0.403 - name: Install DocFX - run: dotnet tool update -g docfx --version 2.71.0 + run: dotnet tool update -g docfx continue-on-error: true - name: Restore packages - run: dotnet restore DisCatSharp.sln + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build library - run: dotnet build -c Release -v minimal -f net7.0 --no-restore DisCatSharp.sln + run: dotnet build -c Release -v minimal -f net8.0 --no-restore DisCatSharp.sln timeout-minutes: 7 continue-on-error: true #- name: Add Custom Plugins diff --git a/.github/workflows/internal-release.yml b/.github/workflows/internal-release.yml index 92fa55b34..806a48f23 100644 --- a/.github/workflows/internal-release.yml +++ b/.github/workflows/internal-release.yml @@ -28,7 +28,7 @@ jobs: 8.0.100 7.0.404 - name: Restore dependencies - run: dotnet restore DisCatSharp.sln + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Set outputs id: vars run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e068a682..ba65d8d46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: 8.0.100 7.0.404 - name: Restore dependencies - run: dotnet restore DisCatSharp.sln + run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln - name: Build library as full release if: ${{!inputs.release_as_prerelease}} shell: pwsh