diff --git a/.gitea/workflows/on_docserver.yaml b/.gitea/workflows/on_docserver.yaml index 03f6adf..d6c90df 100644 --- a/.gitea/workflows/on_docserver.yaml +++ b/.gitea/workflows/on_docserver.yaml @@ -9,7 +9,7 @@ jobs: os: ubuntu-latest # [ubuntu-latest, macos-latest, windows-latest] name: Cargo install on ubuntu-latest - runs-on: ubuntu-latest/rust + runs-on: ubuntu-latest env: CARGO_TERM_COLOR: always KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} @@ -23,6 +23,23 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 #run: echo "šŸ’” The ${{ gitea.repository }} repository has been cloned to the runner." + - name: Install Rust + run: | + export RUSTUP_HOME=/usr/share/rust/.rustup + export CARGO_HOME=/usr/share/rust/.cargo + printf "\n\tšŸ‹ Installing dependencies šŸ‹\t\n" + apt-get -yq update + apt-get -yq install build-essential llvm libssl-dev + printf "\n\tšŸ‹ Installing Rust šŸ‹\t\n" + 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" + rustup -V + printf "\n\tšŸ‹ Installed CARGO šŸ‹\t\n" + cargo -V + printf "\n\tšŸ‹ Installed RUSTC šŸ‹\t\n" + rustc -V - name: Install kubectl run: | OS="$(uname | tr '[:upper:]' '[:lower:]')" @@ -30,7 +47,6 @@ jobs: apt-get update apt-get install ca-certificates update-ca-certificates - type cargo curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/$OS/$ARCH/kubectl" -o /usr/local/bin/kubectl [ -r "/usr/local/bin/kubectl" ] && chmod +x /usr/local/bin/kubectl echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $KUBECONFIG