Skip to content

Commit

Permalink
SDK Downgrade attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirsario committed Feb 24, 2024
1 parent 04ea6e7 commit 0eb2a4c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
IsRelease: ${{ github.event_name == 'push' && (endsWith(github.ref, 'preview') || endsWith(github.ref, 'stable')) }}
IsVersioned: ${{ github.event_name == 'push' && (endsWith(github.ref, 'preview') || endsWith(github.ref, 'stable') || endsWith(github.ref, '1.4.4')) }}
RunDiscordHook: true
ForcedDotnetSdkVersion: 8.0.102

# Controls when the action will run.
on:
Expand Down Expand Up @@ -184,7 +185,7 @@ jobs:
- name: Install .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.102'
dotnet-version: '${{env.ForcedDotnetSdkVersion}}'

# Runs a set of commands using the runners shell
- name: Build script
Expand All @@ -201,6 +202,13 @@ jobs:
dotnet --list-sdks
echo Listing installed .NET Runtimes:
dotnet --list-runtimes
echo Forcing exact SDK version...
dotnet new globaljson --sdk-version ${{env.ForcedDotnetSdkVersion}} --force
echo Default .NET version:
dotnet --version
echo Default .NET 'build' version:
dotnet build --version --nologo
echo Downloading Terraria Server zip
curl -s -L https://terraria.org/api/download/pc-dedicated-server/terraria-server-$TERRARIA_VERSION.zip -o terrariaserver.zip
Expand Down

0 comments on commit 0eb2a4c

Please sign in to comment.