From 36813c1285ff87f512adac6d3b55cc20486569e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20P=C3=A9rez?= Date: Wed, 19 Jul 2023 23:26:17 +0100 Subject: [PATCH] chore: add rust build --- .gitea/workflows/on_docserver.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/on_docserver.yaml b/.gitea/workflows/on_docserver.yaml index 3b3f2d2..cc30f7a 100644 --- a/.gitea/workflows/on_docserver.yaml +++ b/.gitea/workflows/on_docserver.yaml @@ -24,7 +24,6 @@ jobs: #run: echo "šŸ’” The ${{ gitea.repository }} repository has been cloned to the runner." - name: Install Rust run: | - ls ${{ gitea.workspace }} export RUSTUP_HOME=/usr/share/rust/.rustup export CARGO_HOME=/usr/share/rust/.cargo 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 source "${CARGO_HOME}/env" rustup component add rustfmt clippy - printf "\n\tšŸ‹ Installed RUSTUP šŸ‹\t\n" - rustc -V printf "\n\tšŸ‹ Installed CARGO šŸ‹\t\n" cargo -V printf "\n\tšŸ‹ Installed RUSTC šŸ‹\t\n" 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 run: | OS="$(uname | tr '[:upper:]' '[:lower:]')"