From 1fb7988ff88e928d244c81e704ce5b01f793c002 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Mon, 14 Jul 2025 07:36:05 +0530 Subject: [PATCH] test gitea actions --- .gitea/workflows/release.yml | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..345d88a --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,80 @@ +name: Multi Distro Build + +on: workflow_dispatch + +jobs: + clone-repo: + runs-on: ubuntu-latest + outputs: + repo-path: ${{ steps.clone.outputs.repo-path }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + path: artifacts + + arch-build: + runs-on: ubuntu-latest + needs: clone-repo + container: archlinux:latest + steps: + - name: Install dependencies + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm git python python-pip binutils + mv /lib/python3*/EXTERNALLY-MANAGED . || true + pip install --upgrade pip + pip install pyinstaller inquirerpy distro + - name: Build binary + run: | + cd /artifacts + pyinstaller --onefile --add-data "data/:data/" setup.py + cp dist/setup /artifacts/arch-setup + working-directory: /artifacts + shell: bash + + debian-build: + runs-on: ubuntu-latest + needs: clone-repo + container: debian:stable-slim + steps: + - name: Install dependencies + run: | + apt-get update && apt-get upgrade -y + apt-get install -y git python3 python3-pip binutils + mv /usr/lib/python*/EXTERNALLY-MANAGED . || true + pip install pyinstaller inquirerpy distro + - name: Build binary + run: | + cd /artifacts + pyinstaller --onefile --add-data "data/:data/" setup.py + cp dist/setup /artifacts/debian-setup + working-directory: /artifacts + shell: bash + + fedora-build: + runs-on: ubuntu-latest + needs: clone-repo + container: fedora:latest + steps: + - name: Install dependencies + run: | + dnf update -y + dnf install -y git python python-pip binutils + pip install inquirerpy distro pyinstaller + - name: Build binary + run: | + cd /artifacts + pyinstaller --onefile --add-data "data/:data/" setup.py + cp dist/setup /artifacts/fedora-setup + working-directory: /artifacts + shell: bash + + upload-artifacts: + runs-on: ubuntu-latest + needs: [arch-build, debian-build, fedora-build] + steps: + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + path: /artifacts/*-setup