mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 01:17:36 +00:00
ea7c281a47
* Move to dtolnay/toolchain * Correct dtolnay/toolchain to rust-roolchain * Pass toolchain by argument instead of revision Introduces malleability by referring to HEAD of dtolnay, yet GHA errored on the prior syntax.
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: build-dependencies
|
|
description: Installs build dependencies for Serai
|
|
|
|
inputs:
|
|
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@v1
|
|
with:
|
|
repo-token: ${{ inputs.github-token }}
|
|
|
|
- name: Install solc
|
|
shell: bash
|
|
run: |
|
|
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 }}
|
|
|
|
- name: Get nightly version to use
|
|
id: nightly
|
|
shell: bash
|
|
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Install WASM toolchain
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ steps.nightly.outputs.version }}
|
|
targets: wasm32-unknown-unknown
|