Skip to content

Commit

Permalink
fix: ensure rust is installed in gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Feb 28, 2024
1 parent ff0e258 commit 5f6fa41
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,22 @@ vscode:

tasks:
- init: |
yarn install
# Check if Rust is installed, install if not
if ! command -v rustc &> /dev/null
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
fi
# Add wasm target
rustup target add wasm32-unknown-unknown
# Add necessary components
rustup component add rust-src
# Install or update cargo packages
cargo install --force --locked cargo-contract
cargo install cargo-dylint dylint-link
cargo install cargo-dylint dylint-link
# Your existing tasks like yarn install
yarn install

0 comments on commit 5f6fa41

Please sign in to comment.