diff --git a/.github/workflows/build.dotnet.yml b/.github/workflows/build.dotnet.yml index 9e5546c..5f19753 100644 --- a/.github/workflows/build.dotnet.yml +++ b/.github/workflows/build.dotnet.yml @@ -15,14 +15,19 @@ jobs: uses: actions/checkout@v3 - name: Install .NET 6 - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: "6.0.x" - name: Install .NET 7 - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: "7.0.x" - - name: Restore NuGet packages + - name: Install .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + + - name: Build and Test run: ./build.sh test diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index a0d0d9f..1b5e2c1 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Install .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.dotnet_core_version }} diff --git a/build.sh b/build.sh index a0ac357..26adc95 100755 --- a/build.sh +++ b/build.sh @@ -2,10 +2,10 @@ set -euo pipefail version="$(dotnet --version)" -if [[ $version = 7.* ]]; then - target_framework="net7.0" +if [[ $version = 8.* ]]; then + target_framework="net8.0" else - echo "BUILD FAILURE: .NET 7 SDK required to run build" + echo "BUILD FAILURE: .NET 8 SDK required to run build" exit 1 fi diff --git a/src/Ogooreck.Build/Ogooreck.Build.csproj b/src/Ogooreck.Build/Ogooreck.Build.csproj index 0a07b09..ea79c5b 100644 --- a/src/Ogooreck.Build/Ogooreck.Build.csproj +++ b/src/Ogooreck.Build/Ogooreck.Build.csproj @@ -2,13 +2,13 @@ Exe - net7.0 + net8.0 false - - + +