Skip to content

Commit f43b807

Browse files
mikemaccanaclaude
andcommitted
Fix anchor CI: run keys sync before build for 1.0.0 compatibility
Anchor 1.0.0 added a hard check that declare_id!() matches the keypair file, failing the build on mismatch. Running 'anchor keys sync' first fixes the mismatch in-place before the build runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e0c1dcc commit f43b807

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/anchor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ jobs:
136136
return 1
137137
fi
138138
139+
# Sync program IDs (Anchor 1.0.0 requires keypair and declare_id! to match)
140+
anchor keys sync
141+
139142
# Run anchor build
140143
if ! anchor build; then
141144
echo "::error::anchor build failed for $project"

0 commit comments

Comments
 (0)