Skip to content

Commit d8412f9

Browse files
committed
Add program id override and features parameters
1 parent e812057 commit d8412f9

File tree

6 files changed

+15
-259
lines changed

6 files changed

+15
-259
lines changed

.github/workflows/reusable-build.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ on:
5757
type: string
5858
required: false
5959
default: ""
60+
override-program-id:
61+
description: "The program ID is taken from anchor.toml or PROGRAM_ADDRESS_KEYPAIR. But you can also override it here"
62+
type: string
63+
required: false
64+
default: ""
6065
secrets:
6166
DEVNET_SOLANA_DEPLOY_URL:
6267
MAINNET_SOLANA_DEPLOY_URL:
@@ -226,6 +231,12 @@ jobs:
226231
fi
227232
echo "Final DEPLOYER_ADDRESS from env: $DEPLOYER_ADDRESS"
228233
234+
- name: Set Override Program ID
235+
if: inputs.override-program-id != ''
236+
run: |
237+
echo "Setting program ID override to: ${{ inputs.override-program-id }}"
238+
echo "PROGRAM_ID=${{ inputs.override-program-id }}" >> $GITHUB_ENV
239+
229240
- name: Debug Initial Structure
230241
run: |
231242
echo "Current directory structure:"
@@ -253,8 +264,8 @@ jobs:
253264
uses: Woody4618/github-actions/.github/actions/build-anchor@main
254265
if: steps.check-anchor.outputs.is_anchor == 'true'
255266
with:
256-
testing: false
257267
program: ${{ env.PROGRAM_NAME }}
268+
features: ${{ inputs.features }}
258269

259270
- name: Build Verified
260271
uses: Woody4618/github-actions/.github/actions/build-verified@main

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
solana_version: ${{ steps.versions.outputs.solana_version }}
2828
anchor_version: ${{ steps.versions.outputs.anchor_version }}
29-
verify_version: ${{ env.SOLANA_VERIFY_VERSION }}
3029
node_version: 18
3130

3231
- uses: Woody4618/github-actions/.github/actions/run-tests@main

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025
3+
Copyright (c) 2025 Solana Developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Reusable github workflow
1+
# Reusable github workflow
2+

scripts/channel-info.sh

Lines changed: 0 additions & 120 deletions
This file was deleted.

scripts/semver.sh

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)