Update .gitea/workflows/build.yml
Some checks failed
Build on Multiple Distributions / build-on-arch (push) Failing after 6s
Build on Multiple Distributions / build-on-debian (push) Has been cancelled

This commit is contained in:
2025-06-12 01:40:34 +00:00
parent 762d3f8594
commit 99999a52f4

View File

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