Skip to content

Commit ae78bb8

Browse files
committed
ci: fix treenode-filter syntax for macOS (avoid & operator)
1 parent b908924 commit ae78bb8

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ jobs:
5050
- name: Test (net10.0)
5151
shell: bash
5252
run: |
53-
FILTER='/*/*/*/*[Category!=OpenBugs'
54-
if [[ "$RUNNER_OS" != "Windows" ]]; then
55-
FILTER="$FILTER & Category!=WindowsOnly"
53+
if [[ "$RUNNER_OS" == "Windows" ]]; then
54+
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
55+
--configuration Release --no-build --framework net10.0 \
56+
-- --treenode-filter '/*/*/*/*[Category!=OpenBugs]' --report-trx
57+
else
58+
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
59+
--configuration Release --no-build --framework net10.0 \
60+
-- --treenode-filter '/*/*/*/*[Category!=OpenBugs]' \
61+
--treenode-filter '/*/*/*/*[Category!=WindowsOnly]' --report-trx
5662
fi
57-
FILTER="$FILTER]"
58-
dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
59-
--configuration Release --no-build --framework net10.0 \
60-
-- --treenode-filter "$FILTER" --report-trx
6163
6264
- name: Upload Test Results
6365
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)