From fe355ef4015af599d97f2f8d2055b6bdd9efbe53 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Sun, 11 Aug 2024 11:07:28 +0200 Subject: [PATCH 1/2] GHA: add a Mac build --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f8ef09..83b3f97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,23 @@ jobs: - name: Test run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal + macBuild: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + - name: Install dependencies + run: dotnet restore src/GeoJSON.Net.sln + - name: Build + run: dotnet build src/GeoJSON.Net.sln -c Release --no-restore -p:Version=$(git describe --tags) + - name: Test + run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal + winBuild: runs-on: windows-latest steps: From 58e29f19c68e282f3c5f4e41f33109df8c9df791 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Sun, 11 Aug 2024 11:32:41 +0200 Subject: [PATCH 2/2] GHA (Mac): install .NET SDK 6.0 in addition to 8.0 * in order to fix this error: Testhost process for source(s) '/Users/runner/work/GeoJSON.Net/GeoJSON.Net/src/GeoJSON.Net.Tests/bin/Debug/net6.0/GeoJSON.Net.Tests.dll' exited with error: You must install or update .NET to run this application. App: /Users/runner/work/GeoJSON.Net/GeoJSON.Net/src/GeoJSON.Net.Tests/bin/Debug/net6.0/testhost.dll Architecture: arm64 Framework: 'Microsoft.NETCore.App', version '6.0.0' (arm64) .NET location: /Users/runner/.dotnet/ The following frameworks were found: 7.0.2 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 7.0.4 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 7.0.9 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 7.0.20 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 8.0.1 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 8.0.4 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] 8.0.7 at [/Users/runner/.dotnet/shared/Microsoft.NETCore.App] --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83b3f97..1191346 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,9 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: | + 6.0.x + 8.0.x - name: Install dependencies run: dotnet restore src/GeoJSON.Net.sln - name: Build