chore: fix workflow

This commit is contained in:
Jesús Pérez 2023-07-19 23:47:20 +01:00
parent 6f468e98b9
commit 4abf5df01c

View File

@ -22,23 +22,23 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
#run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." #run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Install Rust # - name: Install Rust
run: | # run: |
export RUSTUP_HOME=//share/rust/.rustup # export RUSTUP_HOME=//share/rust/.rustup
export CARGO_HOME=/usr/share/rust/.cargo # export CARGO_HOME=/usr/share/rust/.cargo
printf "\n\t🐋 Installing dependencies 🐋\t\n" # printf "\n\t🐋 Installing dependencies 🐋\t\n"
apt-get -yq update # apt-get -yq update
apt-get -yq install build-essential llvm libssl-dev # apt-get -yq install build-essential llvm libssl-dev
printf "\n\t🐋 Installing Rust 🐋\t\n" # printf "\n\t🐋 Installing Rust 🐋\t\n"
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable --profile=minimal # curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable --profile=minimal
source "${CARGO_HOME}/env" # source "${CARGO_HOME}/env"
rustup component add rustfmt clippy # rustup component add rustfmt clippy
printf "\n\t🐋 Installed CARGO 🐋\t\n" # printf "\n\t🐋 Installed CARGO 🐋\t\n"
cargo -V # cargo -V
printf "\n\t🐋 Installed RUSTC 🐋\t\n" # printf "\n\t🐋 Installed RUSTC 🐋\t\n"
rustc -V # rustc -V
# printf "\n\t🐋 Installed RUSTUP 🐋\t\n" # # printf "\n\t🐋 Installed RUSTUP 🐋\t\n"
# rustup -V # # rustup -V
- name: Rust build - name: Rust build
run: | run: |
export RUSTUP_HOME=/usr/share/rust/.rustup export RUSTUP_HOME=/usr/share/rust/.rustup
@ -46,6 +46,7 @@ jobs:
source "${CARGO_HOME}/env" source "${CARGO_HOME}/env"
cd ${{ gitea.workspace }} cd ${{ gitea.workspace }}
pwd pwd
ls -l /toolcache/*
ls /home/rootless/ ls /home/rootless/
df -h df -h
#cargo build #cargo build