2022-07-23 11:05:31 +00:00
|
|
|
name: build-dependencies
|
|
|
|
description: Installs build dependencies for Serai
|
|
|
|
|
|
|
|
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-06 04:53:57 +00:00
|
|
|
- name: Remove unused packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
(gem uninstall -aIx) || (exit 0)
|
|
|
|
brew uninstall --force "*msbuild*" "*powershell*" "*nuget*" "*bazel*" "*ansible*" "*terraform*" "*heroku*" "*aws*" azure-cli
|
|
|
|
brew uninstall --force "*nodejs*" "*npm*" "*yarn*" "*java*" "*kotlin*" "*golang*" "*swift*" "*julia*" "*fortran*" "*android*"
|
|
|
|
brew uninstall --force "*apache2*" "*nginx*" "*firefox*" "*chromium*" "*chrome*" "*edge*"
|
|
|
|
brew uninstall --force "*qemu*" "*sql*" "*texinfo*" "*imagemagick*"
|
|
|
|
brew cleanup
|
|
|
|
if: runner.os == 'macOS'
|
|
|
|
|
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
|
2024-02-01 00:21:26 +00:00
|
|
|
sudo apt install -y ca-certificates protobuf-compiler
|
2024-02-01 00:10:39 +00:00
|
|
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
|
|
|
choco install protoc
|
2024-02-02 02:31:02 +00:00
|
|
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
|
|
|
brew install protobuf
|
2024-02-01 00:10:39 +00:00
|
|
|
fi
|
2023-10-28 04:45:00 +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
|
2024-03-24 13:00:54 +00:00
|
|
|
svm install 0.8.25
|
|
|
|
svm use 0.8.25
|
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
|