@@ -49,47 +49,20 @@ jobs:
4949 id : cache-protoc
5050 uses : actions/cache@v4
5151 with :
52- path : /usr/ local/bin/protoc
53- key : protoc-${{ runner.os }}-latest
52+ path : ~/. local/bin/protoc
53+ key : protoc-${{ runner.os }}-26.1
5454
55- - name : Install protoc if not cached
55+ - name : Install Latest Protoc if Not Cached
5656 if : steps.cache-protoc.outputs.cache-hit != 'true'
5757 run : |
58- sudo apt-get update
59- sudo apt-get install -y protobuf-compiler
60- protoc --version # Verify installation
58+ PROTOC_VERSION=26.1
59+ ARCH=x86_64
60+ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-${ARCH}.zip
61+ sudo apt-get install -y unzip
62+ unzip protoc-${PROTOC_VERSION}-linux-${ARCH}.zip -d $HOME/.local
63+ echo "$HOME/.local/bin" >> $GITHUB_PATH
64+ protoc --version
6165
6266 # Build yellowstone-vixen
6367 - name : build yellowstone-vixen
6468 run : cargo build --verbose --release
65-
66- # Use cache or Install Rust Nightly
67- - name : Cache Rust Nightly
68- id : cache-rust-nightly
69- uses : actions/cache@v4
70- with :
71- path : ~/.rustup
72- key : rust-nightly-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}
73-
74- - name : Install Rust Nightly if Not Cached
75- if : steps.cache-rust-nightly.outputs.cache-hit != 'true'
76- uses : actions-rs/toolchain@v1
77- with :
78- toolchain : nightly
79- override : true
80- components : rustfmt, clippy
81-
82- # Cargo.lock
83- - name : Check lock file
84- run : |
85- cargo tree
86- git checkout Cargo.lock
87- cargo tree --frozen
88-
89- # fmt
90- - name : Check fmt
91- run : cargo +nightly fmt --all -- --check
92-
93- # clippy
94- - name : Check clippy
95- run : cargo +nightly clippy --all-targets --tests -- -Dwarnings
0 commit comments