Skip to content

Commit

Permalink
chore: asdf installation updated in rust-build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mohiiit committed Dec 17, 2024
1 parent 91611bb commit f99f76b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@ jobs:
with:
version: nightly

# ---------------------------------------------------
# workaround : https://github.com/asdf-vm/actions/issues/562
# asdf installation
- name: Detect ASDF .tool-versions file in repo
shell: bash
id: detect_tool_versions_file
# Install and setup ASDF
- name: Install ASDF and Scarb
run: |
if [ -s .tool-versions ]; then
echo "exists=1" >> $GITHUB_OUTPUT
fi
- name: ASDF install tools
git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.14.1
echo '. "$HOME/.asdf/asdf.sh"' >> $HOME/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> $HOME/.bashrc
. $HOME/.asdf/asdf.sh
asdf plugin add scarb https://github.com/software-mansion/asdf-scarb.git
asdf install scarb 2.8.4
asdf install scarb 2.6.3
asdf global scarb 2.8.4
# Update HOME_DIR in Makefile
- name: Update Makefile HOME_DIR
run: |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1
. ~/.asdf/asdf.sh
# ---------------------------------------------------
sed -i "s|HOME_DIR := /home/ubuntu|HOME_DIR := $HOME|" Makefile
- name: Build the project
run: |
git submodule update --init --recursive
sudo make artifacts-linux
make artifacts-linux
cargo build --release --workspace

0 comments on commit f99f76b

Please sign in to comment.