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