Skip to content

Commit 93d4498

Browse files
committed
Skip .NET Framework in ARM64 consumption test
.NET Framework runs under x64 emulation on Windows ARM64, so it can't load arm64-only native DLLs. Filter out net4* frameworks from the package consumption test on the win-arm64 runner.
1 parent a5bd43a commit 93d4498

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ jobs:
265265
# x86: only test .NET Framework (.NET Core x86 requires an x86 host)
266266
FRAMEWORKS="net472;net48"
267267
EXTRA_ARGS="-p:PlatformTarget=x86"
268+
elif [ "${{ matrix.arch }}" = "arm64" ] && [[ "${{ matrix.rid }}" == win-* ]]; then
269+
# Windows ARM64: .NET Framework runs under x64 emulation, so it can't
270+
# load arm64 native DLLs. Only test .NET Core frameworks here.
271+
FRAMEWORKS=$(echo "${{ matrix.test_frameworks }}" | tr ';' '\n' | grep -v '^net4' | tr '\n' ';' | sed 's/;$//')
268272
else
269273
FRAMEWORKS="${{ matrix.test_frameworks }}"
270274
fi

0 commit comments

Comments
 (0)