ci: speed up builds #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |