Skip to content

Commit

Permalink
build: bump dotnet from 6 to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird authored and fifty-six committed Dec 5, 2024
1 parent c29d959 commit 4c81c03
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore -r win-x64
- name: Build
Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Scarab-Windows
path: Scarab/bin/Release/net6.0/win-x64/publish/
path: Scarab/bin/Release/net8.0/win-x64/publish/

build-linux:
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore -r linux-x64
- name: Build
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Scarab-Linux
path: Scarab/bin/Release/net6.0/linux-x64/publish/
path: Scarab/bin/Release/net8.0/linux-x64/publish/

build-macos:
runs-on: macos-latest
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore -r osx-x64
- name: Build
Expand All @@ -65,7 +65,7 @@ jobs:
dotnet publish --no-restore -r osx-x64 -p:PublishSingleFile=true -p:Configuration=Release --self-contained true
cd ..
mkdir out
python3 make_app.py Scarab.app Scarab/bin/Release/net6.0/osx-x64/publish
python3 make_app.py Scarab.app Scarab/bin/Release/net8.0/osx-x64/publish
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Scarab.Tests/Scarab.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Scarab/Scarab.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<!-- Windowed exe, avoids Console showing for users. -->
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<Version>2.5.0.0</Version>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0",
"version": "8.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
Expand Down

0 comments on commit 4c81c03

Please sign in to comment.