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-23 11:05:31 +00:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2023-10-11 01:09:45 +00:00
|
|
|
- name: Remove unused packages
|
2023-10-11 02:21:03 +00:00
|
|
|
shell: bash
|
2023-10-11 02:29:25 +00:00
|
|
|
run: |
|
2023-10-11 06:11:34 +00:00
|
|
|
sudo apt remove -y "*msbuild*" "*powershell*" "*nuget*" "*bazel*" "*ansible*" "*terraform*" "*heroku*" "*aws*" azure-cli
|
|
|
|
sudo apt remove -y "*nodejs*" "*npm*" "*yarn*" "*java*" "*kotlin*" "*golang*" "*swift*" "*julia*" "*fortran*" "*android*"
|
|
|
|
sudo apt remove -y "*apache2*" "*nginx*" "*firefox*" "*chromium*" "*chrome*" "*edge*"
|
|
|
|
sudo apt remove -y "*qemu*" "*sql*" "*texinfo*" "*imagemagick*"
|
2023-10-11 02:29:25 +00:00
|
|
|
sudo apt autoremove -y
|
2023-10-11 05:17:50 +00:00
|
|
|
sudo apt clean
|
|
|
|
docker system prune -a --volumes
|
2024-02-01 00:10:39 +00:00
|
|
|
if: runner.os == 'Linux'
|
2023-10-11 01:09:45 +00:00
|
|
|
|
2024-02-01 00:10:39 +00:00
|
|
|
- name: Install dependencies
|
2023-10-28 04:45:00 +00:00
|
|
|
shell: bash
|
2024-02-01 00:10:39 +00:00
|
|
|
run: |
|
|
|
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
|
|
|
sudo apt install -y ca-certificates
|
|
|
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
|
|
|
choco install protoc
|
|
|
|
fi
|
2023-10-28 04:45:00 +00:00
|
|
|
|
2022-09-29 18:33:09 +00:00
|
|
|
- name: Install Protobuf
|
2023-09-15 18:30:18 +00:00
|
|
|
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6
|
2023-01-01 08:25:42 +00:00
|
|
|
with:
|
2023-01-01 09:09:10 +00:00
|
|
|
repo-token: ${{ inputs.github-token }}
|
2024-02-01 00:10:39 +00:00
|
|
|
if: runner.os == 'Linux'
|
2022-09-29 18:33:09 +00:00
|
|
|
|
2022-07-23 11:05:31 +00:00
|
|
|
- name: Install solc
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-10-13 09:13:33 +00:00
|
|
|
cargo install svm-rs
|
|
|
|
svm install 0.8.16
|
|
|
|
svm use 0.8.16
|
2022-07-23 11:05:31 +00:00
|
|
|
|
2023-07-03 22:03:09 +00:00
|
|
|
# - name: Cache Rust
|
2023-09-15 18:30:18 +00:00
|
|
|
# uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43
|