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

44 lines
997 B
YAML
Raw Normal View History

name: build-dependencies
description: Installs build dependencies for Serai
inputs:
2023-01-01 09:09:10 +00:00
github-token:
description: "GitHub token to install Protobuf with"
require: true
default:
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@master
with:
2023-01-01 09:09:10 +00:00
repo-token: ${{ inputs.github-token }}
- 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: dtolnay/rust-toolchain@master
with:
toolchain: ${{ inputs.rust-toolchain }}
components: ${{ inputs.rust-components }}
targets: wasm32-unknown-unknown
2023-03-28 09:34:21 +00:00
- name: Cache Rust
uses: Swatinem/rust-cache@v2