i think this might work
This commit is contained in:
@@ -3,17 +3,13 @@ name: Multi Distro Build
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
clone-repo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
arch-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: clone-repo
|
||||
container: archlinux:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pacman -Syu --noconfirm
|
||||
@@ -23,16 +19,22 @@ jobs:
|
||||
pip install pyinstaller inquirerpy distro
|
||||
- name: Build binary
|
||||
run: |
|
||||
pwd && ls
|
||||
pyinstaller --onefile --add-data "data/:data/" setup.py
|
||||
cp dist/setup arch-setup
|
||||
shell: bash
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: arch-setup
|
||||
path: arch-setup
|
||||
|
||||
debian-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: clone-repo
|
||||
container: debian:stable-slim
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update && apt-get upgrade -y
|
||||
@@ -44,12 +46,19 @@ jobs:
|
||||
pyinstaller --onefile --add-data "data/:data/" setup.py
|
||||
cp dist/setup debian-setup
|
||||
shell: bash
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: debian-setup
|
||||
path: debian-setup
|
||||
|
||||
fedora-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: clone-repo
|
||||
container: fedora:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
dnf update -y
|
||||
@@ -60,12 +69,8 @@ jobs:
|
||||
pyinstaller --onefile --add-data "data/:data/" setup.py
|
||||
cp dist/setup fedora-setup
|
||||
shell: bash
|
||||
|
||||
upload-artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [arch-build, debian-build, fedora-build]
|
||||
steps:
|
||||
- name: Upload artifacts
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: "*-setup"
|
||||
name: fedora-setup
|
||||
path: fedora-setup
|
||||
|
||||
Reference in New Issue
Block a user