Skip to content

Commit 3bfd981

Browse files
Pass regenerate-command to rainix-copy-artifacts
rainix now installs .staged-config/ itself and runs extra regeneration only from the regenerate-command input (rainlanguage/rainix#433). Drop build.sh's install block and pass build.sh as regenerate-command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d62bea8 commit 3bfd981

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

‎.github/workflows/git-clean.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ jobs:
66
# artifacts are still current. The meta hook is `script/build-meta.sh`;
77
# pointers + abis use the upstream Build.sol convention.
88
uses: rainlanguage/rainix/.github/workflows/rainix-copy-artifacts.yaml@main
9+
with:
10+
regenerate-command: ./script/build.sh
911
secrets: inherit

‎script/build.sh‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ set -euxo pipefail
1414

1515
cd "$(dirname "$0")/.."
1616

17-
# `forge script script/Build.sol` stages the generated network config here,
18-
# because forge refuses filesystem writes to the root `foundry.toml`.
19-
staged=.staged-config
20-
if [ ! -d "$staged" ] || [ -z "$(find "$staged" -mindepth 1 -maxdepth 1 -type f)" ]; then
21-
echo "::error::$staged/ is missing or empty; run forge script ./script/Build.sol first." >&2
22-
exit 1
23-
fi
24-
find "$staged" -mindepth 1 -maxdepth 1 -type f -exec cp {} . \;
25-
rm -rf "$staged"
26-
2717
# Pass the whole pipeline via `bash -c '...'` rather than `bash <<INNER`:
2818
# graph codegen / npm ci consume the heredoc body off stdin otherwise,
2919
# turning the rest of the script into bogus argv for the codegen command.

0 commit comments

Comments
 (0)