Skip to content

Commit 519611c

Browse files
committed
add continue on error for CI
1 parent d095855 commit 519611c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/bench-test.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105

106106
- name: cargo check
107107
working-directory: ./${{ matrix.project }}
108+
continue-on-error: true
108109
run: cargo check
109110

110111
- name: git diff for .rs files
@@ -135,7 +136,7 @@ jobs:
135136
into_iter_count=0
136137
137138
# Iterate over all .rs files in the current directory and subdirectories
138-
find . -type f -name '*.rs' | while read -r file; do
139+
while read -r file; do
139140
echo checking $file
140141
# Count occurrences of iterator methods in the current file
141142
iter_count_in_file=$(grep -o '\.iter()' "$file" | wc -l)
@@ -146,7 +147,7 @@ jobs:
146147
((iter_count += iter_count_in_file))
147148
((iter_mut_count += iter_mut_count_in_file))
148149
((into_iter_count += into_iter_count_in_file))
149-
done
150+
done < <(find . -type f -name '*.rs')
150151
151152
# Print results
152153
echo ".iter() occurrences: $iter_count"
@@ -163,7 +164,7 @@ jobs:
163164
par_iter_mut_count=0
164165
165166
# Iterate over all .rs files in the current directory and subdirectories
166-
find . -type f -name '*.rs' | while read -r file; do
167+
while read -r file; do
167168
echo checking $file
168169
# Count occurrences in the current file
169170
par_iter_count_in_file=$(grep -o '\.par_iter()' "$file" | wc -l)
@@ -174,7 +175,7 @@ jobs:
174175
((par_iter_count += par_iter_count_in_file))
175176
((into_par_iter_count += into_par_iter_count_in_file))
176177
((par_iter_mut_count += par_iter_mut_count_in_file))
177-
done
178+
done < <(find . -type f -name '*.rs')
178179
179180
# Print results
180181
echo ".par_iter() occurrences: $par_iter_count"

0 commit comments

Comments
 (0)