From 99999a52f4ed377b9a24b40750fd8048bf492e74 Mon Sep 17 00:00:00 2001 From: akshun Date: Thu, 12 Jun 2025 01:40:34 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 91 ++++++-------------------------------- 1 file changed, 14 insertions(+), 77 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a34ff1f..0e8bcb6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,12 +1,6 @@ name: Build on Multiple Distributions -on: - push: - branches: - - main - pull_request: - branches: - - main +on: [push, pull_request] jobs: build-on-arch: @@ -14,101 +8,44 @@ jobs: container: image: archlinux:latest steps: + - name: Checkout Code + uses: actions/checkout@v4 - - name: Install basic dependencies + - name: Install Dependencies run: | pacman -Syu --noconfirm - pacman -S --noconfirm nodejs npm - - - uses: actions/checkout@v4 - with: - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' - - name: Install dependencies - run: | - pacman -S --noconfirm python python-pip binutils - - - name: Prepare Python environment - run: | - mv /lib/python3*/EXTERNALLY-MANAGED . - pip install --upgrade pip - pip install pyinstaller inquirerpy distro + pacman -S --noconfirm git python python-pip nodejs npm binutils - name: Build with PyInstaller run: | + pip install pyinstaller inquirerpy distro pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - name: Upload artifact + - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: arch-setup path: dist/setup - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' build-on-debian: - runs-on: ubuntu-latest + runs-on: linux container: image: debian:stable steps: + - uses: actions/checkout@v4 - - name: Install basic dependencies + - name: Install Dependencies run: | apt update && apt upgrade -y - apt install -y git nodejs npm - - - uses: actions/checkout@v4 - with: - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' - - - name: Install dependencies - run: | - apt install -y python3 python3-pip binutils - - - name: Prepare Python environment - run: | - mv /lib/python*/EXTERNALLY-MANAGED . - pip install pyinstaller inquirerpy distro + apt install -y git python3 python3-pip nodejs npm binutils - name: Build with PyInstaller run: | + pip install pyinstaller inquirerpy distro pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - name: Upload artifact + - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: debian-setup - path: dist/setup - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' - - build-on-fedora: - runs-on: ubuntu-latest - container: - image: fedora:latest - steps: - - - name: Install basic dependencies - run: | - dnf up -y - dnf install -y git nodejs npm - - - uses: actions/checkout@v4 - with: - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' - - - name: Install dependencies - run: | - dnf install -y python python-pip binutils - - - name: Install Python dependencies - run: | - pip install inquirerpy distro pyinstaller - - - name: Build with PyInstaller - run: | - pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: fedora-setup - path: dist/setup - repository: 'https://gitea.akshun-lab.uk/akshun/setup-script' + path: dist/setup \ No newline at end of file