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