serai/.github/actions/build-dependencies/action.yml
Luke Parker 482a8ec209
Update to the latest Serai Substrate (#125)
* Update to the latest Serai Substrate

* Add Protobuf to build dependencies

Docker shouldn't need updating as this should've been added to the image 
in 
2dbace5b01.

* Get substrate to build

* Correct protoc build step

* Remove the benchmarking code

There's some macro resolution error that isn't apparent. I worked on it 
for about half an hour but...

* Remove unnecessary clone

* Correct runtime-benchmarks flag usage
2022-09-29 13:33:09 -05:00

44 lines
1.1 KiB
YAML

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: |
pip3 install solc-select
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
shell: bash
run: echo "::set-output name=version::$(cat .github/nightly-version)"
- name: Install WASM toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.nightly.outputs.version }}
profile: minimal
target: wasm32-unknown-unknown