Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/actions/setup-foundry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ runs:
cp -a "${source_dir}/." "${out_dir}/"
rm -f "${out_dir}/.ready"

# Validate that .yul files were actually restored
shopt -s nullglob
restored_yul=("${out_dir}"/*.yul)
if [ "${#restored_yul[@]}" -eq 0 ]; then
echo "::warning::Local Yul cache had .ready sentinel but no .yul files — falling back to artifact download"
exit 1
fi
echo "Restored ${#restored_yul[@]} Yul files from local cache"

- name: Download generated Yul
if: inputs.download-yul == 'true' && steps.local-restore-yul.outcome != 'success'
uses: actions/download-artifact@v7
Expand Down Expand Up @@ -84,6 +93,13 @@ runs:
cp -a "${source_dir}/." .lake/build/bin/
rm -f .lake/build/bin/.ready

# Validate that the interpreter binary was actually restored
if [ ! -f .lake/build/bin/difftest-interpreter ]; then
echo "::warning::Local difftest cache had .ready sentinel but no binary — falling back to artifact download"
exit 1
fi
echo "Restored difftest-interpreter from local cache"

- name: Download difftest interpreter
if: steps.local-restore-difftest.outcome != 'success'
uses: actions/download-artifact@v7
Expand Down
Loading
Loading