test gitea actions

This commit is contained in:
2025-07-14 07:36:05 +05:30
parent f224342f5b
commit 1fb7988ff8

View File

@@ -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