Skip to content

Commit

Permalink
ci: use .NET 8 instead of mono
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Jan 19, 2025
1 parent 9db73ec commit e3e907f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- uses: actions/checkout@v3
name: Checkout repo

- name: Dotnet Setup
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
dotnet-version: '8.x'

# Install NuGet
- uses: nuget/setup-nuget@v1
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
id: valheimversion
run: echo "valheimversion=$(curl -s https://api.steamcmd.net/v1/info/896660 | jq -r ".data.\"896660\".depots.branches.public.buildid")" >> $GITHUB_OUTPUT

- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

# Install NuGet
- uses: nuget/setup-nuget@v1
name: Install NuGet
Expand All @@ -36,16 +41,6 @@ jobs:
nuget restore JotunnLib.sln
dotnet restore JotunnLib/JotunnLib.csproj
# Get build commands
- name: Get build commands
run: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y mono-roslyn mono-complete mono-dbg msbuild unzip dirmngr dotnet-sdk-5.0 dotnet-runtime-5.0
# Cache the results
- name: Cache Valheim
id: cachevalheim
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,15 @@ jobs:
id: valheimversion
run: echo "valheimversion=$(curl -s https://api.steamcmd.net/v1/info/896660 | jq -r ".data.\"896660\".depots.branches.public.buildid")"

- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

# Install NuGet
- uses: nuget/setup-nuget@v1
name: Install NuGet

# Get build commands
- name: Get build commands
run: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y mono-roslyn mono-complete mono-dbg msbuild unzip dirmngr dotnet-sdk-5.0 dotnet-runtime-5.0
# Install NuGet dependencies
- name: Install NuGet dependencies
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
echo "VERSION_NUMBER=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Install NuGet
uses: nuget/setup-nuget@v1

Expand All @@ -38,15 +43,6 @@ jobs:
run: |
dotnet tool restore
- name: Get build commands
run: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y mono-roslyn mono-complete mono-dbg msbuild unzip dirmngr dotnet-sdk-5.0 dotnet-runtime-5.0
- name: Cache Valheim
id: cachevalheim
uses: actions/cache@v3
Expand Down

0 comments on commit e3e907f

Please sign in to comment.