From 96b78caca21d8bc7a6ce7d192cc6b11aafb1f605 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 18 Apr 2025 16:11:06 +0530 Subject: [PATCH] several improvements --- .gitea/workflows/build.yml | 51 +++++++++++--------------------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a8ece65..94cf926 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,22 +14,15 @@ jobs: container: image: archlinux:latest steps: - - - name: Install basic dependencies - run: | - pacman -Syu --noconfirm - pacman -S --noconfirm git nodejs npm - - - name: Checkout code - run: | - git clone https://gitea.akshun-lab.uk/aggarwalakshun/rust-setup.git . - git checkout $GITEA_SHA - - name: Install dependencies run: | - pacman -S --noconfirm rustup gcc + pacman -Syu --noconfirm + pacman -S --noconfirm git rustup gcc rustup default stable + - name: Checkout code + uses: actions/checkout@v4 + - name: Build with cargo run: | cargo build --release @@ -45,20 +38,13 @@ jobs: container: image: debian:stable steps: - - - name: Install basic dependencies - run: | - apt update && apt upgrade -y - apt install -y git nodejs npm - - - name: Checkout code - run: | - git clone https://gitea.akshun-lab.uk/aggarwalakshun/rust-setup.git . - git checkout $GITEA_SHA - - name: Install dependencies run: | - apt install -y cargo + apt update && apt upgrade -y + apt install -y git cargo + + - name: Checkout code + uses: actions/checkout@v4 - name: Build with cargo run: | @@ -75,20 +61,13 @@ jobs: container: image: fedora:latest steps: - - - name: Install basic dependencies - run: | - dnf up -y - dnf install -y git nodejs npm - - - name: Checkout code - run: | - git clone https://gitea.akshun-lab.uk/aggarwalakshun/rust-setup.git . - git checkout $GITEA_SHA - - name: Install dependencies run: | - dnf install -y cargo + dnf update -y + dnf install -y git cargo + + - name: Checkout code + uses: actions/checkout@v4 - name: Build with cargo run: |