mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
The reproducible runtime test failed due to running out of space. If we have multiple tests failing due to out of space, and all of our tests have these unused, it makes sense just to always so uninstall. Also extends the time limit of reproducible-runtime, as 2h has been hit a few times before.
47 lines
1.3 KiB
YAML
47 lines
1.3 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: 1.73.0
|
|
|
|
rust-components:
|
|
description: "Rust components to install"
|
|
required: false
|
|
default:
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Remove unused packages
|
|
run: sudo apt remove -y *powershell* *bazel* *nodejs* *npm* *yarn* *terraform* *firefox* *chromium* *qemu* *texinfo* *sqlite3* *imagemagick* && sudo apt autoremove -y
|
|
|
|
- name: Install Protobuf
|
|
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6
|
|
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@5cb429dd810e16ff67df78472fa81cf760f4d1c0
|
|
with:
|
|
toolchain: ${{ inputs.rust-toolchain }}
|
|
components: ${{ inputs.rust-components }}
|
|
targets: wasm32-unknown-unknown, riscv32imac-unknown-none-elf
|
|
|
|
# - name: Cache Rust
|
|
# uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43
|