From 6523c8408e9271b93c7c42051f1420ff6a67b3d2 Mon Sep 17 00:00:00 2001 From: akshun Date: Thu, 5 Jun 2025 23:39:18 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 42 ++++++++++++-------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ebd3571..557b86f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,34 +1,22 @@ -name: Build on Multiple Distributions - -on: - push: - branches: - - main - pull_request: - branches: - - main - jobs: build-on-arch: runs-on: ubuntu-latest container: image: archlinux:latest steps: - - - uses: actions/checkout@v4 - - - name: Install dependencies + - name: Install basic dependencies run: | pacman -Syu --noconfirm - pacman -S --noconfirm git rustup gcc + pacman -S --noconfirm git nodejs npm rustup gcc rustup default stable + - uses: actions/checkout@v4 + - name: Build with cargo run: | cargo build --release - - name: Upload artifact - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v3 with: name: arch-setup path: target/release/setup @@ -38,22 +26,20 @@ jobs: container: image: debian:stable steps: - - - uses: actions/checkout@v4 - - name: Install dependencies run: | apt update && apt upgrade -y - apt install -y git curl + apt install -y git nodejs npm curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y . $HOME/.cargo/env + - uses: actions/checkout@v4 + - name: Build with cargo run: | cargo build --release - - name: Upload artifact - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v3 with: name: debian-setup path: target/release/setup @@ -63,22 +49,20 @@ jobs: container: image: fedora:latest steps: - - - uses: actions/checkout@v4 - - name: Install dependencies run: | dnf update -y - dnf install -y git curl + dnf install -y git nodejs npm curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y . $HOME/.cargo/env + - uses: actions/checkout@v4 + - name: Build with cargo run: | cargo build --release - - name: Upload artifact - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v3 with: name: fedora-setup path: target/release/setup \ No newline at end of file