Update .gitea/workflows/build.yml
This commit is contained in:
@@ -8,14 +8,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
pacman -S --noconfirm git python python-pip nodejs npm binutils
|
pacman -S --noconfirm git python python-pip nodejs npm binutils
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with PyInstaller
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
pip install pyinstaller inquirerpy distro
|
pip install pyinstaller inquirerpy distro
|
||||||
@@ -28,17 +28,17 @@ jobs:
|
|||||||
path: dist/setup
|
path: dist/setup
|
||||||
|
|
||||||
build-on-debian:
|
build-on-debian:
|
||||||
runs-on: linux
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install 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 python3 python3-pip nodejs npm binutils
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build with PyInstaller
|
- name: Build with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
pip install pyinstaller inquirerpy distro
|
pip install pyinstaller inquirerpy distro
|
||||||
@@ -48,4 +48,27 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: debian-setup
|
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
|
path: dist/setup
|
||||||
Reference in New Issue
Block a user