chore: add rust build
This commit is contained in:
parent
63ced43d5c
commit
36813c1285
@ -24,7 +24,6 @@ jobs:
|
|||||||
#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: |
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
export RUSTUP_HOME=/usr/share/rust/.rustup
|
export RUSTUP_HOME=/usr/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"
|
||||||
@ -34,12 +33,20 @@ jobs:
|
|||||||
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 RUSTUP 🐋\t\n"
|
|
||||||
rustc -V
|
|
||||||
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"
|
||||||
|
# rustup -V
|
||||||
|
- name: Rust build
|
||||||
|
run: |
|
||||||
|
export RUSTUP_HOME=/usr/share/rust/.rustup
|
||||||
|
export CARGO_HOME=/usr/share/rust/.cargo
|
||||||
|
source "${CARGO_HOME}/env"
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
cargo build
|
||||||
|
ls -l target/debug
|
||||||
- name: Install kubectl
|
- name: Install kubectl
|
||||||
run: |
|
run: |
|
||||||
OS="$(uname | tr '[:upper:]' '[:lower:]')"
|
OS="$(uname | tr '[:upper:]' '[:lower:]')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user