Add gated_mint to CI/CD workflows (MET-429)#467
Closed
metapileks wants to merge 1 commit into
Closed
Conversation
- generate-verifiable-builds.yaml: build and commit verifiable-builds/gated_mint.so on pushes to develop/production - deploy-programs.yaml: add gated_mint as a deployable program (Squads multisig as upgrade authority, same as all other programs) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
Repository Guard
Repository GuardCargo dependency pinning
Cross-program Anchor/Solana version consistency
solana-program crate pin
Anchor.toml solana_version
Crate minimum age
Yarn package.json pinning
npm minimum age
Workflow toolchain consistency
GitHub Action SHA pinning
Sensitive program / config changes
Overall status: pass Lockfile freshness (Cargo.lock + yarn.lock) is checked by the workflow directly and cannot be bypassed. The sensitive-diff section is a review hint - CODEOWNERS handles the actual merge gate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires
gated_mint(GaTEjZy6eMdHg2BcL8dk3iE78jkJ9sPtyw1q2tMNi8PA) into CI/CD, following the exact pattern of every other program:generate-verifiable-builds.yaml: newgenerate-verifiable-gated-mintjob — builds the verifiable.soon every push todevelop/productionand commits it toverifiable-builds/gated_mint.so.deploy-programs.yaml:gated_mintadded to the program dropdown + newgated-mintjob callingreusable-build.yamlwithuse-squads: true(Squads multisig as upgrade authority, same secrets as all other programs).Note: initial deploy is a one-time manual step
gated_mintis not on mainnet yet, and the Squads deploy path only handles upgrades of an existing program (precedent: launchpad_v8 was deployed manually before its first workflow run). After this merges and CI commitsverifiable-builds/gated_mint.so:solana program deploythe verifiable.sowith theGaTE…program keypair (deployer as initial upgrade authority)anchor idl init+anchor idl set-authority→6awyHMshBGVjJ3ozdSJdyyDE1CTAXUwrpNMaRGMsb4sf(the CI IDL step skips silently if the IDL account doesn't exist)solana program set-upgrade-authority→6awyHMshBGVjJ3ozdSJdyyDE1CTAXUwrpNMaRGMsb4sfgated_mintto smoke-test the pipeline (byte-identical no-op upgrade + IDL set + verify PDA)From then on, all upgrades go through the workflow as usual.
Verification
yarn repo:guardpasses (action SHA pins,solana-cli-version: 1.17.31consistency)programs/gated_mint/Cargo.tomlhas theproduction = []feature required byfeatures: 'production'🤖 Generated with Claude Code