Skip to content

Commit 0fa2e52

Browse files
committed
fix
1 parent 66f5c75 commit 0fa2e52

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,18 @@ jobs:
8181
- name: Generate C++ Build Systems on ${{ matrix.os }}
8282
timeout-minutes: 5
8383
working-directory: ice-demos/cpp
84-
run: find . -name CMakeLists.txt -execdir cmake -B build -S . -DIce_DEBUG=ON ";"
84+
run: |
85+
for dir in $(find . -name CMakeLists.txt -type d); do
86+
cmake -B "$dir/build" -S "$dir" -DIce_DEBUG=ON
87+
done
8588
8689
- name: Build C++ Demos on ${{ matrix.os }}
8790
timeout-minutes: 20
8891
working-directory: ice-demos/cpp
89-
run: find . -name CMakeLists.txt -type d -execdir cmake --build build ";"
92+
run: |
93+
for dir in $(find . -name CMakeLists.txt -type d); do
94+
cmake --build "$dir/build"
95+
done
9096
9197
- name: Build C# Demos on ${{ matrix.os }}
9298
timeout-minutes: 20
@@ -120,5 +126,8 @@ jobs:
120126
- name: Build Swift Demos on ${{ matrix.os }}
121127
timeout-minutes: 20
122128
working-directory: ice-demos/swift
123-
run: find . -name Package.swift -execdir swift build \;
129+
run: |
130+
for dir in $(find . -name Package.swift -type d); do
131+
swift build --package-path "$dir"
132+
done
124133
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)