Skip to content

Commit

Permalink
Update GitHub Actions to .NET 8, fail workshop_bundler.sh on build er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
Zetrith committed May 6, 2024
1 parent 67d1537 commit 75cb8bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Install Mod Dependencies
run: dotnet restore ${{ env.SLN_PATH }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-workshop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Run workshop bundler
run: ./workshop_bundler.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up .NET
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
Expand Down
4 changes: 2 additions & 2 deletions workshop_bundler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

VERSION=$(grep -Po '(?<=Version = ")[0-9\.]+' Source/Common/Version.cs)

git submodule update --init --recursive
git submodule update --init --recursive || { echo 'git submodule update FAILED' ; exit 1; }

cd Source
dotnet build --configuration Release
dotnet build --configuration Release || { echo 'dotnet build FAILED' ; exit 1; }
cd ..

rm -rf Multiplayer/
Expand Down

0 comments on commit 75cb8bf

Please sign in to comment.