From 44f29f8451de165af37aefa265e66906b7922e55 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Thu, 28 May 2026 12:56:54 +0200 Subject: [PATCH 1/2] ci: pin .NET 8 runtime for mikeio1d The GitHub Actions ubuntu-24.04 runner image bumped from 20260513.135 to 20260518.149 on 2026-05-18 and now ships .NET 10. mikeio1d's native shim only loads under .NET 8 (documented in its README and matched by its own CI), so the new image breaks the networks-group tests with a DllNotFoundException for libufs.so. Install .NET 8 explicitly via actions/setup-dotnet in the workflows that pull the networks group: full_test, notebooks_test, docs. --- .github/workflows/docs.yml | 5 +++++ .github/workflows/full_test.yml | 5 +++++ .github/workflows/notebooks_test.yml | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cd57ed263..ffc3cefaf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,6 +35,11 @@ jobs: with: version: "1.8.27" + - name: Set up .NET (required by mikeio1d, see networks group) + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + - name: Install dependencies run: uv sync --group dev --group docs --group networks diff --git a/.github/workflows/full_test.yml b/.github/workflows/full_test.yml index c20ff88f0..e60834dd3 100644 --- a/.github/workflows/full_test.yml +++ b/.github/workflows/full_test.yml @@ -37,6 +37,11 @@ jobs: python-version: ${{ matrix.python-version }} enable-cache: true + - name: Set up .NET (required by mikeio1d, see networks group) + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + - name: Install dependencies run: uv sync --group test --group networks --no-dev diff --git a/.github/workflows/notebooks_test.yml b/.github/workflows/notebooks_test.yml index dd64a1df6..21a0ab418 100644 --- a/.github/workflows/notebooks_test.yml +++ b/.github/workflows/notebooks_test.yml @@ -20,6 +20,10 @@ jobs: with: python-version: "3.14" enable-cache: true + - name: Set up .NET (required by mikeio1d, see networks group) + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' - name: Install dependencies run: uv sync --group test --group notebooks --group networks --no-dev - name: Test notebooks From 035795782d315a93c9b5b78eae4a18fb440a51dd Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Thu, 28 May 2026 13:03:02 +0200 Subject: [PATCH 2/2] ci: remove .NET 9/10 so mikeio1d binds to .NET 8 setup-dotnet@v4 installs .NET 8 alongside the runner's pre-existing .NET 10 in /usr/share/dotnet, and the .NET host still rolls forward to 10.x at load time. Delete the newer runtimes after install so mikeio1d resolves to .NET 8 as documented. --- .github/workflows/docs.yml | 3 +++ .github/workflows/full_test.yml | 3 +++ .github/workflows/notebooks_test.yml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ffc3cefaf..4bb17304f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -40,6 +40,9 @@ jobs: with: dotnet-version: '8.0.x' + - name: Remove newer .NET runtimes so mikeio1d doesn't roll forward off 8.0 + run: sudo rm -rf /usr/share/dotnet/shared/Microsoft.NETCore.App/9.* /usr/share/dotnet/shared/Microsoft.NETCore.App/10.* + - name: Install dependencies run: uv sync --group dev --group docs --group networks diff --git a/.github/workflows/full_test.yml b/.github/workflows/full_test.yml index e60834dd3..c58ff7654 100644 --- a/.github/workflows/full_test.yml +++ b/.github/workflows/full_test.yml @@ -42,6 +42,9 @@ jobs: with: dotnet-version: '8.0.x' + - name: Remove newer .NET runtimes so mikeio1d doesn't roll forward off 8.0 + run: sudo rm -rf /usr/share/dotnet/shared/Microsoft.NETCore.App/9.* /usr/share/dotnet/shared/Microsoft.NETCore.App/10.* + - name: Install dependencies run: uv sync --group test --group networks --no-dev diff --git a/.github/workflows/notebooks_test.yml b/.github/workflows/notebooks_test.yml index 21a0ab418..ab10f10c7 100644 --- a/.github/workflows/notebooks_test.yml +++ b/.github/workflows/notebooks_test.yml @@ -24,6 +24,8 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' + - name: Remove newer .NET runtimes so mikeio1d doesn't roll forward off 8.0 + run: sudo rm -rf /usr/share/dotnet/shared/Microsoft.NETCore.App/9.* /usr/share/dotnet/shared/Microsoft.NETCore.App/10.* - name: Install dependencies run: uv sync --group test --group notebooks --group networks --no-dev - name: Test notebooks