Skip to content

Commit 39e696c

Browse files
committed
fix(ci): use bash shell for build, restore --project flag for tests
- Build step needs bash shell to parse multi-line commands with backslash continuations (PowerShell fails on Windows) - dotnet test requires --project flag in .NET 10 SDK
1 parent 4547cf9 commit 39e696c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
dotnet-quality: 'preview'
4242

4343
- name: Build
44+
shell: bash
4445
run: |
4546
# Disable MSTest Testing Platform for CI due to .NET 10 SDK protocol version mismatch
4647
dotnet build test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
@@ -64,7 +65,7 @@ jobs:
6465
if [[ "$RUNNER_OS" != "Windows" ]]; then
6566
FILTER="$FILTER&TestCategory!=WindowsOnly"
6667
fi
67-
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
68+
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
6869
--configuration Release --no-build --framework net8.0 \
6970
--filter "$FILTER" --logger "trx"
7071
@@ -79,7 +80,7 @@ jobs:
7980
if [[ "$RUNNER_OS" != "Windows" ]]; then
8081
FILTER="$FILTER&TestCategory!=WindowsOnly"
8182
fi
82-
dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
83+
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
8384
--configuration Release --no-build --framework net10.0 \
8485
--filter "$FILTER" --logger "trx"
8586

0 commit comments

Comments
 (0)