From d16e4caf94abfa94e7be67b18ed93830f6b4c8d3 Mon Sep 17 00:00:00 2001 From: ktechmidas Date: Fri, 11 Oct 2024 11:52:57 +0300 Subject: [PATCH] chore: add prereqs to release --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4300b56..0f30a21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,28 @@ jobs: arch: arm64 target: aarch64-apple-darwin steps: + - uses: dtolnay/rust-toolchain@master + name: Install Rust toolchain + with: + toolchain: ${{ inputs.toolchain }} + + - name: Install protoc + id: deps-protoc + shell: bash + run: | + curl -Lo /tmp/protoc.zip \ + https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-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: Rust cache + uses: Swatinem/rust-cache@v2 + + - name: "Compile Protobuf definitions (needed by fmt, doc, etc.)" + shell: bash + run: cargo build -p tenderdash-proto + - name: Check out code uses: actions/checkout@v4