Commit 9545b41
authored
* chore(ci): drop redundant pnpm config from asm projects
The pnpm 10.33.0 pin in the asm workflow is what fixes the
ERR_PNPM_IGNORED_BUILDS failure (pinned pnpm treats ignored build scripts as
a warning, not a hard error). The per-project pnpm.ignoredBuiltDependencies
blocks only silenced the warning and did not fix CI, so remove them.
* ci(anchor): drop anchor build retry loop
The sparse registry protocol (CARGO_REGISTRIES_CRATES_IO_PROTOCOL) plus
CARGO_NET_RETRY handle the transient crates.io index fetch failures at the
cargo level, so the explicit 3x anchor build retry loop is redundant.
* ci(anchor): drop redundant explicit anchor keys sync
anchor test syncs program ids to the ephemeral keypair itself before
building and deploying, so the separate anchor keys sync step is redundant.
* refactor(anchor): stage cpi keypairs via pre_build hook
The cross-program-invocation example needs stable hand/lever program ids
(declare_program! bakes the lever address into hand). They were force-added
into the gitignored target/deploy. Move them to a tracked keypairs/ dir and
stage them into target/deploy with an Anchor.toml pre_build hook, so the
ids stay stable without committing into an ignored path.
* ci(anchor): verify cpi keypairs match Anchor.toml in pre_build
The global anchor build --ignore-keys skips the keypair/declare_id check, so
a drifted or missing committed keypair would only surface at test time. Have
the pre_build hook assert each staged keypair's pubkey appears in Anchor.toml
and fail the build loudly otherwise.
* docs(ci): note anchor 1.0.x key-sync assumption in anchor test
The reliance on anchor test syncing program ids itself is Anchor 1.0.x
behavior; flag it so it gets re-verified when anchor-version is bumped.
---------
Co-authored-by: Jo D <dev-jodee@users.noreply.github.com>
1 parent 8544990 commit 9545b41
8 files changed
Lines changed: 8 additions & 38 deletions
File tree
- .github/workflows
- basics
- checking-accounts/asm
- create-account/asm
- cross-program-invocation/anchor
- keypairs
- hello-solana/asm
- transfer-sol/asm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 146 | + | |
156 | 147 | | |
157 | 148 | | |
158 | 149 | | |
159 | 150 | | |
160 | 151 | | |
161 | 152 | | |
162 | 153 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
167 | 157 | | |
168 | 158 | | |
169 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 22 | | |
29 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
0 commit comments