|
10 | 10 | - 'solana/**'
|
11 | 11 |
|
12 | 12 | env:
|
| 13 | + ANCHOR_VERSION: 0.30.1 |
13 | 14 | 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 |
16 | 18 | jobs:
|
17 | 19 | cancel-previous-runs:
|
18 | 20 | runs-on: ubuntu-latest
|
@@ -54,47 +56,62 @@ jobs:
|
54 | 56 | runs-on: ubuntu-latest
|
55 | 57 | steps:
|
56 | 58 | - uses: actions/checkout@v4
|
57 |
| - - uses: metadaoproject/setup-anchor@v2 |
58 |
| - with: |
59 |
| - node-version: "20.11.0" |
60 |
| - solana-cli-version: "1.18.15" |
61 |
| - anchor-version: "0.30.1" |
62 |
| - - name: make check-idl |
63 |
| - run: make check-idl |
64 |
| - working-directory: ./solana |
65 |
| - |
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 |
| 59 | + - name: Install toolchain |
| 60 | + uses: dtolnay/rust-toolchain@master |
73 | 61 | with:
|
74 |
| - version: nightly |
75 |
| - - uses: metadaoproject/setup-anchor@v2 |
| 62 | + toolchain: ${{ env.RUSTC_VERSION }} |
| 63 | + components: clippy, rustfmt |
| 64 | + - uses: actions/setup-node@v4 |
76 | 65 | 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 |
| 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: Install Anchor |
| 74 | + run: cargo install anchor-cli --force --version ${{ env.ANCHOR_VERSION }} |
| 75 | + # with: |
| 76 | + # node-version: "20.11.0" |
| 77 | + # solana-cli-version: "1.18.15" |
| 78 | + # anchor-version: "0.30.1" |
| 79 | + # - name: make check-idl |
| 80 | + # run: make check-idl |
| 81 | + # working-directory: ./solana |
83 | 82 |
|
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 |
| 83 | + # make-anchor-test: |
| 84 | + # name: make anchor-test |
| 85 | + # runs-on: ubuntu-latest |
| 86 | + # steps: |
| 87 | + # - uses: actions/checkout@v4 |
| 88 | + # - name: Install Foundry |
| 89 | + # uses: foundry-rs/foundry-toolchain@v1 |
| 90 | + # with: |
| 91 | + # version: nightly |
| 92 | + # - uses: metadaoproject/setup-anchor@v2 |
| 93 | + # with: |
| 94 | + # node-version: "20.11.0" |
| 95 | + # solana-cli-version: "1.18.15" |
| 96 | + # anchor-version: "0.30.1" |
| 97 | + # - name: make anchor-test |
| 98 | + # run: make anchor-test |
| 99 | + # working-directory: ./solana |
| 100 | + |
| 101 | + # make-anchor-test-upgrade: |
| 102 | + # name: make anchor-test-upgrade |
| 103 | + # runs-on: ubuntu-latest |
| 104 | + # steps: |
| 105 | + # - uses: actions/checkout@v4 |
| 106 | + # - name: Install Foundry |
| 107 | + # uses: foundry-rs/foundry-toolchain@v1 |
| 108 | + # with: |
| 109 | + # version: nightly |
| 110 | + # - uses: metadaoproject/setup-anchor@v2 |
| 111 | + # with: |
| 112 | + # node-version: "20.11.0" |
| 113 | + # solana-cli-version: "1.18.15" |
| 114 | + # anchor-version: "0.30.1" |
| 115 | + # - name: make anchor-test-upgrade |
| 116 | + # run: make anchor-test-upgrade |
| 117 | + # working-directory: ./solana |
0 commit comments