Skip to content

Commit

Permalink
ci: fix cargo installation
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Aug 14, 2024
1 parent 2644123 commit 5a6e634
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/deployer/init_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/downl
chmod +x /usr/local/bin/yq

## Install rust
echo "Installing cargo"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh

cat << 'EOF' > cargo.expect
Expand All @@ -192,6 +193,8 @@ expect {
}
EOF

chmod +x clone.expect
./clone.expect
source "$HOME/.cargo/env"

## Install solana
Expand Down Expand Up @@ -235,6 +238,7 @@ alias pull-deploy-script='sudo /opt/deployer/bin/update_git.sh'
alias check-env='sudo /opt/deployer/bin/check-parameter.sh'
alias make='sudo /opt/deployer/bin/deploy.sh'" >> $${DEPLOYR_HOME}/.bashrc

chmod +x /opt/deployer/root/keyutils/add_secret.sh
echo "## Aliases
alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'" >> /root/.bashrc
chmod 400 /tmp/user_data_log.out || true
Expand Down

0 comments on commit 5a6e634

Please sign in to comment.