Skip to content

ci: speed up builds

ci: speed up builds #2

Workflow file for this run

name: toolchain
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
install_toolchain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set-Up
run: sudo apt-get update && sudo apt-get install -f -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler eatmydata
- name: Cache toolchain
id: cache-rustup
uses: actions/cache@v3
with:
key: ${{ runner.os }}-toolchain-${{ hashFiles('**/rust-toolchain.toml') }}
path: |
~/.cargo/
~/.rustup/
- name: Install Rustup
id: install-rustup
if: steps.cache-rustup.outputs.cache-hit != 'true'
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source ~/.cargo/env
which rustup
rustup default stable
rustup update nightly
rustup update stable
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown --toolchain nightly