Skip to content

Commit d76a472

Browse files
committed
yolo
1 parent a120ba9 commit d76a472

File tree

1 file changed

+82
-63
lines changed

1 file changed

+82
-63
lines changed

.github/workflows/solana.yml

Lines changed: 82 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ on:
1010
- 'solana/**'
1111

1212
env:
13+
ANCHOR_VERSION: 0.30.1
1314
CARGO_TERM_COLOR: always
14-
RUSTC_VERSION: 1.75.0
15-
15+
NODE_VERSION: 20.11.0
16+
RUSTC_VERSION: 1.81.0
17+
SOLANA_VERSION: 1.18.15
1618
jobs:
1719
cancel-previous-runs:
1820
runs-on: ubuntu-latest
@@ -22,21 +24,35 @@ jobs:
2224
with:
2325
access_token: ${{ github.token }}
2426

25-
make-cargo-test-all:
26-
name: make cargo-test-all
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v4
30-
- name: Install toolchain
31-
uses: dtolnay/rust-toolchain@master
32-
with:
33-
toolchain: ${{ env.RUSTC_VERSION }}
34-
- name: make cargo-test-all
35-
run: make cargo-test-all
36-
working-directory: ./solana
27+
# make-cargo-test-all:
28+
# name: make cargo-test-all
29+
# runs-on: ubuntu-latest
30+
# steps:
31+
# - uses: actions/checkout@v4
32+
# - name: Install toolchain
33+
# uses: dtolnay/rust-toolchain@master
34+
# with:
35+
# toolchain: ${{ env.RUSTC_VERSION }}
36+
# - name: make cargo-test-all
37+
# run: make cargo-test-all
38+
# working-directory: ./solana
39+
40+
# make-lint:
41+
# name: make lint
42+
# runs-on: ubuntu-latest
43+
# steps:
44+
# - uses: actions/checkout@v4
45+
# - name: Install toolchain
46+
# uses: dtolnay/rust-toolchain@master
47+
# with:
48+
# toolchain: ${{ env.RUSTC_VERSION }}
49+
# components: clippy, rustfmt
50+
# - name: make lint
51+
# run: make lint
52+
# working-directory: ./solana
3753

38-
make-lint:
39-
name: make lint
54+
make-check-idl:
55+
name: make check-idl
4056
runs-on: ubuntu-latest
4157
steps:
4258
- uses: actions/checkout@v4
@@ -45,56 +61,59 @@ jobs:
4561
with:
4662
toolchain: ${{ env.RUSTC_VERSION }}
4763
components: clippy, rustfmt
48-
- name: make lint
49-
run: make lint
50-
working-directory: ./solana
51-
52-
make-check-idl:
53-
name: make check-idl
54-
runs-on: ubuntu-latest
55-
steps:
56-
- uses: actions/checkout@v4
57-
- uses: metadaoproject/setup-anchor@v2
64+
- uses: actions/setup-node@v4
5865
with:
59-
node-version: "20.11.0"
60-
solana-cli-version: "1.18.15"
61-
anchor-version: "0.30.1"
66+
node-version: ${{ env.NODE_VERSION }}
67+
- name: Install Solana CLI tools
68+
run: sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_VERSION }}/install)"
69+
shell: bash
70+
- name: Update PATH
71+
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
72+
shell: bash
73+
- name: wtf
74+
run: cargo build-sbf -- --features integration-test
75+
- name: Install Anchor
76+
run: npm i -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
77+
# with:
78+
# node-version: "20.11.0"
79+
# solana-cli-version: "1.18.15"
80+
# anchor-version: "0.30.1"
6281
- name: make check-idl
6382
run: make check-idl
6483
working-directory: ./solana
6584

66-
make-anchor-test:
67-
name: make anchor-test
68-
runs-on: ubuntu-latest
69-
steps:
70-
- uses: actions/checkout@v4
71-
- name: Install Foundry
72-
uses: foundry-rs/foundry-toolchain@v1
73-
with:
74-
version: nightly
75-
- uses: metadaoproject/setup-anchor@v2
76-
with:
77-
node-version: "20.11.0"
78-
solana-cli-version: "1.18.15"
79-
anchor-version: "0.30.1"
80-
- name: make anchor-test
81-
run: make anchor-test
82-
working-directory: ./solana
85+
# make-anchor-test:
86+
# name: make anchor-test
87+
# runs-on: ubuntu-latest
88+
# steps:
89+
# - uses: actions/checkout@v4
90+
# - name: Install Foundry
91+
# uses: foundry-rs/foundry-toolchain@v1
92+
# with:
93+
# version: nightly
94+
# - uses: metadaoproject/setup-anchor@v2
95+
# with:
96+
# node-version: "20.11.0"
97+
# solana-cli-version: "1.18.15"
98+
# anchor-version: "0.30.1"
99+
# - name: make anchor-test
100+
# run: make anchor-test
101+
# working-directory: ./solana
83102

84-
make-anchor-test-upgrade:
85-
name: make anchor-test-upgrade
86-
runs-on: ubuntu-latest
87-
steps:
88-
- uses: actions/checkout@v4
89-
- name: Install Foundry
90-
uses: foundry-rs/foundry-toolchain@v1
91-
with:
92-
version: nightly
93-
- uses: metadaoproject/setup-anchor@v2
94-
with:
95-
node-version: "20.11.0"
96-
solana-cli-version: "1.18.15"
97-
anchor-version: "0.30.1"
98-
- name: make anchor-test-upgrade
99-
run: make anchor-test-upgrade
100-
working-directory: ./solana
103+
# make-anchor-test-upgrade:
104+
# name: make anchor-test-upgrade
105+
# runs-on: ubuntu-latest
106+
# steps:
107+
# - uses: actions/checkout@v4
108+
# - name: Install Foundry
109+
# uses: foundry-rs/foundry-toolchain@v1
110+
# with:
111+
# version: nightly
112+
# - uses: metadaoproject/setup-anchor@v2
113+
# with:
114+
# node-version: "20.11.0"
115+
# solana-cli-version: "1.18.15"
116+
# anchor-version: "0.30.1"
117+
# - name: make anchor-test-upgrade
118+
# run: make anchor-test-upgrade
119+
# working-directory: ./solana

0 commit comments

Comments
 (0)