-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,24 +18,13 @@ runs: | |
shell: bash | ||
run: | | ||
curl -Lo /tmp/protoc.zip \ | ||
https://github.com/protocolbuffers/protobuf/releases/download/v22.0/protoc-22.0-linux-x86_64.zip | ||
https://github.com/protocolbuffers/protobuf/releases/download/v24.3/protoc-24.3-linux-x86_64.zip | ||
unzip /tmp/protoc.zip -d ${HOME}/.local | ||
echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV | ||
export PATH="${PATH}:${HOME}/.local/bin" | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
- name: Set sccache variables | ||
shell: bash | ||
run: | | ||
echo SCCACHE_GHA_ENABLED=true >> $GITHUB_ENV | ||
echo RUSTC_WRAPPER=sccache >> $GITHUB_ENV | ||
- name: Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
# Don't cache ./target, as it takes tons of space, use sccache instead. | ||
cache-targets: false | ||
# We set a shared key, as our cache is reusable between jobs | ||
shared-key: rust-cargo | ||
|
||
- name: "Compile Protobuf definitions (needed by fmt, doc, etc.)" | ||
shell: bash | ||
run: cargo build -p tenderdash-proto |