We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5031ac commit 557360eCopy full SHA for 557360e
1 file changed
.github/workflows/ci.yml
@@ -244,10 +244,12 @@ jobs:
244
test -z "$(git status --porcelain)"
245
- name: "Make sure rebuild is a no-op"
246
run: |
247
- output=$(${{matrix.config.env.rustflags}} cargo hack build --locked ${{matrix.config.args}} --ignore-private 2>&1)
248
- if echo "$output" | grep -q "Compiling"; then
+ stale=$(${{matrix.config.env.rustflags}} cargo hack build --locked ${{matrix.config.args}} --ignore-private \
+ --message-format json 2>/dev/null \
249
+ | jq -r 'select(.reason == "compiler-artifact" and .fresh == false) | .target.name')
250
+ if [ -n "$stale" ]; then
251
echo "ERROR: Second build recompiled crates that should have been cached:"
- echo "$output" | grep "Compiling"
252
+ echo "$stale"
253
exit 1
254
fi
255
0 commit comments