@@ -61,14 +61,14 @@ jobs:
6161 - name : Setup Ice Build Dependencies
6262 uses : ./ice/.github/actions/setup-dependencies
6363
64- - name : Build Ice on ${{ matrix.os }}
64+ - name : Build Ice
6565 uses : ./ice/.github/actions/build
6666 timeout-minutes : 60
6767 with :
6868 working_directory : ice
6969 build_flags : ${{ runner.os == 'Windows' && '/t:BuildDist' || 'srcs' }}
7070
71- - name : Publish C# NuGet Packages on ${{ matrix.os }}
71+ - name : Publish C# NuGet Packages
7272 timeout-minutes : 5
7373 working-directory : ice/csharp/msbuild
7474 run : dotnet msbuild ice.proj /t:Publish
@@ -78,14 +78,27 @@ jobs:
7878 with :
7979 path : ice-demos
8080
81- - name : Generate C++ Demos ${{ matrix.os }}
81+ - name : Generate C++ Demos
8282 timeout-minutes : 5
8383 working-directory : ice-demos/cpp
8484 run : |
85- find . -name CMakeLists.txt type -f | while IFS= read -r file; dir="$(basename $file)"; do
86- cmake -B "$dir/build" -S "$dir" -DIce_DEBUG=ON
87- cmake --build "$dir/build" --config Release
88- done
85+ find . -name CMakeLists.txt type -f | while IFS= read -r file; do
86+ dir="$(dirname $file)";
87+ cmake -B "$dir/build" -S "$dir" -DIce_DEBUG=ON
88+ cmake --build "$dir/build" --config Release
89+ done
90+ if : runner.os != 'Windows'
91+
92+ - name : Generate C++ Demos
93+ timeout-minutes : 5
94+ working-directory : ice-demos/cpp
95+ run : |
96+ Get-ChildItem -Recurse -Filter CMakeLists.txt | ForEach-Object {
97+ $dir = $_.DirectoryName
98+ cmake -B "$dir/build" -S "$dir" -DIce_DEBUG=ON
99+ cmake --build "$dir/build" --config Release
100+ }
101+ if : runner.os == 'Windows'
89102
90103 - name : Build C# Demos on ${{ matrix.os }}
91104 timeout-minutes : 20
@@ -120,7 +133,7 @@ jobs:
120133 timeout-minutes : 20
121134 working-directory : ice-demos/swift
122135 run : |
123- find . -name Package.swift type -f | while IFS= read -r file; dir="$(basename $file)"; do
124- swift build --package-path "$dir "
136+ find . -name Package.swift type -f | while IFS= read -r file; do
137+ swift build --package-path "$(dirname $file) "
125138 done
126139 if : runner.os == 'macOS'
0 commit comments