This is an automated email from the ASF dual-hosted git repository.
FreeAndNil pushed a commit to branch Feature/305-dotnet-10-build-cleanup
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git
The following commit(s) were added to
refs/heads/Feature/305-dotnet-10-build-cleanup by this push:
new 87bb3d2e Run CI on the latest runner images (#305)
87bb3d2e is described below
commit 87bb3d2ef5f626e8ac8db28976a01af51427a984
Author: Jan Friedrich <[email protected]>
AuthorDate: Wed Aug 5 00:03:21 2026 +0200
Run CI on the latest runner images (#305)
macos-14 and ubuntu-22.04 are superseded by macos-latest (macOS 26) and
ubuntu-latest (Ubuntu 24.04). Neither new image ships Mono, so net4x
tests cannot run there - which is why log4net.Tests restricts net462 to
Windows. Correct the reason given in BUILDING.md and the changelog.
---
.github/workflows/build.yaml | 2 +-
doc/BUILDING.md | 5 +++--
src/changelog/3.4.0/305-build-net4x-without-mono.xml | 5 +++--
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index f25255cc..564337a3 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ macos-14, ubuntu-22.04, windows-latest ]
+ os: [ macos-latest, ubuntu-latest, windows-latest ]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
diff --git a/doc/BUILDING.md b/doc/BUILDING.md
index 39680300..083ef357 100644
--- a/doc/BUILDING.md
+++ b/doc/BUILDING.md
@@ -32,8 +32,9 @@ TL;DR (!Windows):
`Microsoft.NETFramework.ReferenceAssemblies` packages that the .NET SDK
references
implicitly. Mono would only be needed to *execute* net4x assemblies.
- the `log4net.Tests` project skips `net462` on non-Windows platforms: VSTest
hosts net4x tests
- through `TestHostNetFramework/testhost.exe`, a .NET Framework executable, so
the run aborts
- with `TESTRUNABORT` on Linux and macOS. The `net462` tests run only on the
Windows job in CI.
+ through `TestHostNetFramework/testhost.exe`, which needs a .NET Framework
runtime - Mono, off
+ Windows. The Ubuntu 24.04 and macOS 26 runner images no longer ship Mono, so
the run would
+ abort with `TESTRUNABORT`. The `net462` tests run only on the Windows job in
CI.
## The full story
diff --git a/src/changelog/3.4.0/305-build-net4x-without-mono.xml
b/src/changelog/3.4.0/305-build-net4x-without-mono.xml
index 260bb2c6..cddb347e 100644
--- a/src/changelog/3.4.0/305-build-net4x-without-mono.xml
+++ b/src/changelog/3.4.0/305-build-net4x-without-mono.xml
@@ -8,7 +8,8 @@
Mono is no longer required to build the `net462` and `net472` targets on
Linux and macOS.
`MonoForFramework.targets` and its `FrameworkPathOverride` handling were
removed in favour of
the `Microsoft.NETFramework.ReferenceAssemblies` packages that the .NET
SDK already references
- implicitly. Mono would only be needed to run .NET Framework assemblies, so
the `net462` test
- target is now skipped off Windows, where VSTest cannot host it
+ implicitly. Mono is still needed to *run* .NET Framework assemblies: CI
moved to
+ `ubuntu-latest` (Ubuntu 24.04) and `macos-latest` (macOS 26), which no
longer ship Mono, so
+ the `net462` tests now run only on the Windows job
</description>
</entry>