Skip to content

Commit

Permalink
fix(actions): restore tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 21, 2023
1 parent 9726717 commit ad50f8b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad50f8b

Please sign in to comment.