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:
|
2023-01-01 09:09:10 +00:00
|
|
|
github-token:
|
|
|
|
description: "GitHub token to install Protobuf with"
|
|
|
|
require: true
|
|
|
|
default:
|
|
|
|
|
2022-07-29 14:36:09 +00:00
|
|
|
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
|
2023-06-28 16:28:11 +00:00
|
|
|
uses: arduino/setup-protoc@v2.0.0
|
2023-01-01 08:25:42 +00:00
|
|
|
with:
|
2023-01-01 09:09:10 +00:00
|
|
|
repo-token: ${{ inputs.github-token }}
|
2022-09-29 18:33:09 +00:00
|
|
|
|
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
|
2023-01-09 22:21:31 +00:00
|
|
|
uses: dtolnay/rust-toolchain@master
|
2022-07-29 14:36:09 +00:00
|
|
|
with:
|
|
|
|
toolchain: ${{ inputs.rust-toolchain }}
|
|
|
|
components: ${{ inputs.rust-components }}
|
2023-06-28 16:26:53 +00:00
|
|
|
targets: wasm32-unknown-unknown, riscv32imac-unknown-none-elf
|
2023-03-28 09:34:21 +00:00
|
|
|
|
2023-07-03 22:03:09 +00:00
|
|
|
# - name: Cache Rust
|
|
|
|
# uses: Swatinem/rust-cache@v2
|