File tree 4 files changed +25
-5
lines changed
4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 50
50
path : |
51
51
~/.cargo/registry
52
52
~/.cargo/git
53
- key : ${{ matrix.os }}-cargo-build-${{ hashFiles('**/Cargo.lock', 'rust-toolchain') }}-${{ env.RUST_STABLE }}
53
+ key : ${{ matrix.os }}-cargo-build-${{ hashFiles('**/Cargo.lock', 'rust-toolchain.toml ') }}-${{ env.RUST_STABLE }}
54
54
55
55
- name : cargo fmt
56
56
uses : actions-rs/cargo@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # see also upstream solana/rust-toolchain.toml
2
+ # https://github.com/anza-xyz/agave/blob/master/rust-toolchain.toml
3
+ [toolchain ]
4
+ channel = " 1.84.1"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Get agave-geyser-plugin-interface version from Cargo.lock
4
+ AGAVE_VERSION=$( grep -A 1 ' name = "agave-geyser-plugin-interface"' Cargo.lock | grep version | cut -d' "' -f2)
5
+ echo " Found agave-geyser-plugin-interface version: $AGAVE_VERSION "
6
+
7
+ # Get Agave's rust-toolchain.toml version based on the agave-geyser-plugin-interface version
8
+ VERSION=$( curl -s " https://raw.githubusercontent.com/anza-xyz/agave/v$AGAVE_VERSION /rust-toolchain.toml" | grep channel | cut -d' "' -f2)
9
+ echo " Found Agave's rust-toolchain.toml version: $VERSION "
10
+
11
+ # Check current version
12
+ CURRENT_VERSION=$( grep channel rust-toolchain.toml | cut -d' "' -f2)
13
+ echo " Current rust-toolchain.toml version: $CURRENT_VERSION "
14
+
15
+ if [ " $CURRENT_VERSION " != " $VERSION " ]; then
16
+ echo " Updating rust-toolchain.toml to $VERSION "
17
+ sed -i ' ' " s/channel = \" .*\" /channel = \" $VERSION \" /" rust-toolchain.toml
18
+ else
19
+ echo " rust-toolchain.toml is already up to date"
20
+ fi
You can’t perform that action at this time.
0 commit comments