Files
setup-script/.gitea/workflows/build.yml
akshun 83d6d52402
Some checks failed
Build on Multiple Distributions / build-on-arch (push) Has been cancelled
Build on Multiple Distributions / build-on-fedora (push) Has been cancelled
Build on Multiple Distributions / build-on-debian (push) Has been cancelled
Update .gitea/workflows/build.yml
2025-06-12 01:44:23 +00:00

74 lines
2.0 KiB
YAML

name: Build on Multiple Distributions
on: [push, pull_request]
jobs:
build-on-arch:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Install Dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm git python python-pip nodejs npm binutils
- name: Checkout Code
uses: actions/checkout@v4
- 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
uses: actions/upload-artifact@v3
with:
name: arch-setup
path: dist/setup
build-on-debian:
runs-on: ubuntu-latest
container:
image: debian:stable
steps:
- name: Install Dependencies
run: |
apt update && apt upgrade -y
apt install -y git python3 python3-pip nodejs npm binutils
- uses: actions/checkout@v4
- 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
uses: actions/upload-artifact@v3
with:
name: debian-setup
path: dist/setup
build-on-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install Dependencies
run: |
dnf up -y
dnf install -y git python3 python3-pip nodejs npm
- uses: actions/checkout@v4
- 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
uses: actions/upload-artifact@v3
with:
name: fedora-setup
path: dist/setup