Update .gitea/workflows/build.yml
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
name: Build on Multiple Distributions
|
name: Build on Multiple Distributions
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-on-arch:
|
build-on-arch:
|
||||||
@@ -8,21 +14,30 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
pacman -S --noconfirm git python python-pip nodejs npm binutils
|
pacman -S --noconfirm nodejs npm
|
||||||
|
|
||||||
- name: Checkout Code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: Build with PyInstaller
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
pip install pyinstaller inquirerpy distro
|
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: arch-setup
|
name: arch-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
@@ -32,20 +47,29 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
steps:
|
steps:
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
apt install -y git python3 python3-pip nodejs npm binutils
|
apt install -y git nodejs npm
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: Build with PyInstaller
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
pip install pyinstaller inquirerpy distro
|
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: debian-setup
|
name: debian-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
@@ -55,20 +79,29 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: Install basic dependencies
|
||||||
run: |
|
run: |
|
||||||
dnf up -y
|
dnf up -y
|
||||||
dnf install -y git python3 python3-pip nodejs npm
|
dnf install -y git nodejs npm
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
pip install pyinstaller inquirerpy distro
|
|
||||||
pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fedora-setup
|
name: fedora-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user