From 07178c3be8d8e634796b147a5657def864d05425 Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Sun, 17 Sep 2023 10:39:26 +0200 Subject: [PATCH] feat: Update solution to .NET 8.0 + CI feat: Update solution to .NET 8.0 - Updated the target framework of multiple projects to .NET 8.0 - Updated package references to versions compatible with .NET 8.0 - Modified GitHub Actions workflow to use .NET 8.0 for building and testing --- .github/workflows/dotnet-build.yml | 54 +++++++------------ .../YumeChan.ConsoleRunner.csproj | 6 +-- src/YumeChan.Core/YumeChan.Core.csproj | 18 +++---- .../YumeChan.NetRunner.Plugins.csproj | 10 ++-- .../YumeChan.NetRunner.csproj | 16 +++--- 5 files changed, 44 insertions(+), 60 deletions(-) diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index c669d44..5365a8a 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -3,42 +3,26 @@ name: .NET Build on: - push - pull_request - jobs: - build-debug: + build: + strategy: + matrix: + configuration: [Debug, Release] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - submodules: 'recursive' - - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 6.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore -c Debug - - name: Test - run: dotnet test --no-build --verbosity normal + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # avoid shallow clone so nbgv can do its work. + submodules: 'recursive' - build-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - submodules: 'recursive' - - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 6.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore -c Release - - name: Test - run: dotnet test --no-build --verbosity normal + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 8.0.x + allow-prerelease: true + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore -c ${{ matrix.configuration }} + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/src/YumeChan.ConsoleRunner/YumeChan.ConsoleRunner.csproj b/src/YumeChan.ConsoleRunner/YumeChan.ConsoleRunner.csproj index 82c5d3d..54327a0 100644 --- a/src/YumeChan.ConsoleRunner/YumeChan.ConsoleRunner.csproj +++ b/src/YumeChan.ConsoleRunner/YumeChan.ConsoleRunner.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 preview 3.0 Sakura Akeno Isayeki @@ -24,8 +24,8 @@ - - + + diff --git a/src/YumeChan.Core/YumeChan.Core.csproj b/src/YumeChan.Core/YumeChan.Core.csproj index 30a7378..55e4ed7 100644 --- a/src/YumeChan.Core/YumeChan.Core.csproj +++ b/src/YumeChan.Core/YumeChan.Core.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 3.0-rc3 Sakura Akeno Isayeki Nodsoft Systems @@ -32,14 +32,14 @@ - - - - - - - - + + + + + + + + diff --git a/src/YumeChan.NetRunner.Plugins/YumeChan.NetRunner.Plugins.csproj b/src/YumeChan.NetRunner.Plugins/YumeChan.NetRunner.Plugins.csproj index f08ccc0..ca55c0c 100644 --- a/src/YumeChan.NetRunner.Plugins/YumeChan.NetRunner.Plugins.csproj +++ b/src/YumeChan.NetRunner.Plugins/YumeChan.NetRunner.Plugins.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -21,10 +21,10 @@ - - - - + + + + diff --git a/src/YumeChan.NetRunner/YumeChan.NetRunner.csproj b/src/YumeChan.NetRunner/YumeChan.NetRunner.csproj index 3adec48..be371d1 100644 --- a/src/YumeChan.NetRunner/YumeChan.NetRunner.csproj +++ b/src/YumeChan.NetRunner/YumeChan.NetRunner.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 3.0-rc3 Sakura Akeno Isayeki Nodsoft Systems @@ -24,23 +24,23 @@ - + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - +