serai/.github/actions/build-dependencies/action.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

name: build-dependencies
description: Installs build dependencies for Serai
inputs:
rust-toolchain:
description: "Rust toolchain to install"
required: false
default: stable
rust-components:
description: "Rust components to install"
required: false
default:
runs:
using: "composite"
steps:
- name: Install Protobuf
uses: arduino/setup-protoc@v1
- name: Install solc
shell: bash
run: |
2022-10-16 00:04:37 +00:00
pip3 install solc-select==0.2.1
solc-select install 0.8.16
solc-select use 0.8.16
- name: Install Rust
uses: ./.github/actions/cached-rust
with:
toolchain: ${{ inputs.rust-toolchain }}
components: ${{ inputs.rust-components }}
- name: Get nightly version to use
id: nightly
2022-09-17 20:29:44 +00:00
shell: bash
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
- name: Install WASM toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.nightly.outputs.version }}
profile: minimal
target: wasm32-unknown-unknown