Skip to content

Commit 78dfb37

Browse files
authored
chore(cli): Install specific surfpool version (solana-foundation#4292)
Also ensure that the CI step fails if installation fails
1 parent 389fee1 commit 78dfb37

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/actions/setup-surfpool/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ runs:
2222
retry_on: error
2323
shell: bash
2424
command: |
25+
set -euxo pipefail
2526
echo "Installing Surfpool version ${{ env.SURFPOOL_CLI_VERSION }}"
26-
curl -sL https://run.surfpool.run/ | bash
27+
curl -sL https://run.surfpool.run/ | VERSION=v${{ env.SURFPOOL_CLI_VERSION }} bash
2728
echo "$HOME/.local/bin" >> $GITHUB_PATH
2829
echo "$PATH"
2930
ls -al $HOME/.local/bin

.github/workflows/no-caching-tests.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,4 @@ jobs:
1717
node_version: 20.18.0
1818
cargo_profile: release
1919
anchor_binary_name: anchor-binary-no-caching
20-
# TODO: currently this value is only used to invalidate the cache and install latest, it is not
21-
# actually installing the specified version.
22-
# Issue: https://github.com/solana-foundation/anchor/issues/4160
23-
surfpool_cli_version: 1.0.0-rc1
20+
surfpool_cli_version: 1.0.0

.github/workflows/tests.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,4 @@ jobs:
2222
node_version: 20.18.0
2323
cargo_profile: debug
2424
anchor_binary_name: anchor-binary
25-
# TODO: currently this value is only used to invalidate the cache and install latest, it is not
26-
# actually installing the specified version.
27-
# Issue: https://github.com/solana-foundation/anchor/issues/4160
28-
surfpool_cli_version: 1.0.0-rc1
25+
surfpool_cli_version: 1.0.0

0 commit comments

Comments
 (0)