Skip to content

Commit 564b798

Browse files
authored
Merge pull request #15886 from smartcontractkit/jlavera/add-ci-action-to-build-contracts
Add CI Action to build Solana contracts
2 parents 4e935bf + f1c00b8 commit 564b798

File tree

1 file changed

+14
-0
lines changed
  • .github/actions/setup-solana/build-contracts

1 file changed

+14
-0
lines changed

.github/actions/setup-solana/build-contracts/action.yml

+14
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@ description: Build Solana contracts
44
runs:
55
using: composite
66
steps:
7+
- name: Get CCIP Revision
8+
id: get_ccip_chains_solana_revision
9+
shell: bash
10+
run: |
11+
# TODO get the short revision from the go.mod file
12+
short_revision=8973fd0c912b
13+
14+
# TODO map from the short to the long revision value, the checkout action doesn't support short revisions
15+
long_revision=8973fd0c912b8f5bd12283dca7e599d0241b424f
16+
17+
echo "CHAINLINK_CCIP_COMMIT_SHORT=${short_revision}" >> $GITHUB_ENV
18+
echo "CHAINLINK_CCIP_COMMIT_LONG=${long_revision}" >> $GITHUB_ENV
719
- name: Checkout chainlink-ccip
820
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
921
with:
1022
repository: smartcontractkit/chainlink-ccip
23+
ref: ${{ env.CHAINLINK_CCIP_COMMIT_LONG }}
24+
fetch-depth: 0
1125
path: chainlink-ccip
1226
- name: Get Anchor Version
1327
id: get_anchor_version

0 commit comments

Comments
 (0)