Skip to content

Commit 7d2c086

Browse files
authored
Migrate to anza (#4)
1 parent 13a5621 commit 7d2c086

10 files changed

Lines changed: 912 additions & 884 deletions

File tree

.github/workflows/anchor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: ./
1616
with:
17-
solana-version: v1.16.18
18-
anchor-version: v0.28.0
19-
rust-version: 1.73.0
17+
solana-version: v1.17.34
18+
anchor-version: v0.29.0
19+
rust-version: 1.74.1
2020
setup-node: 20
2121
workspace: "tests/anchor"
2222

2323
- name: Anchor build & test
2424
run: |
25-
solana --version | grep 1.16.18
26-
anchor --version | grep 0.28.0
25+
solana --version | grep 1.17.34
26+
anchor --version | grep 0.29.0
2727
cd tests/anchor
2828
anchor build
2929
anchor test --skip-lint

.github/workflows/bpf-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: ./
1616
with:
17-
solana-version: v1.16.18
18-
rust-version: 1.73.0
17+
solana-version: v1.17.34
18+
rust-version: 1.74.1
1919
workspace: "tests/test-bpf"
2020

2121
- name: Host test
2222
run: |
23+
sudo apt-get install libprotobuf-dev protobuf-compiler
2324
cd tests/test-bpf
2425
cargo build
2526
cargo test
@@ -35,12 +36,13 @@ jobs:
3536
- uses: actions/checkout@v3
3637
- uses: ./
3738
with:
38-
solana-version: v1.16.18
39-
rust-version: 1.73.0
39+
solana-version: v1.17.34
40+
rust-version: 1.74.1
4041
workspace: "tests/test-bpf"
4142

4243
- name: Bpf test
4344
run: |
45+
sudo apt-get install libprotobuf-dev protobuf-compiler
4446
cd tests/test-bpf
4547
cargo build-bpf
4648
cargo test-bpf

.github/workflows/simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: ./
1616
with:
17-
solana-version: v1.16.18
17+
solana-version: v1.17.34
1818

1919
- run: |
2020
solana --version

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: 'Setup Solana SDK'
22
description: 'Setup the Solana SDK and the rust toolchain to build and test smart contracts'
33
inputs:
44
solana-version:
5-
description: "Version of the solana sdk to install (eg. 'v1.16.18'). Avoid symbolic channels (stable, beta and edge) as cache won't get invalidated properly"
5+
description: "Version of the solana sdk to install (eg. 'v1.17.34'). Avoid symbolic channels (stable, beta and edge) as cache won't get invalidated properly"
66
required: true
77
anchor-version:
8-
description: "Optional version of Anchor CLI to install (eg. 'v0.28.0')"
8+
description: "Optional version of Anchor CLI to install (eg. 'v0.29.0')"
99
rust-version:
1010
description: "Version of rust to install (eg. 'stable'). Will install fmt and clippy"
1111
default: 'stable'
@@ -78,7 +78,7 @@ runs:
7878
- name: Install Solana
7979
if: steps.cache-solana.outputs.cache-hit != 'true'
8080
run: |
81-
sh -c "$(curl -sSfL https://release.solana.com/${{ inputs.solana-version }}/install)"
81+
sh -c "$(curl -sSfL https://release.anza.xyz/${{ inputs.solana-version }}/install)"
8282
shell: bash
8383
- name: Enable Solana bins
8484
run: |

0 commit comments

Comments
 (0)