Update .gitea/workflows/build.yml
This commit is contained in:
@@ -26,13 +26,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pacman -S --noconfirm python python-pip binutils
|
pacman -S --noconfirm python python-pip binutils
|
||||||
|
|
||||||
- name: Check for changes
|
|
||||||
run: |
|
|
||||||
if ! git diff --name-only $GITEA_BEFORE_SHA $GITEA_SHA; then
|
|
||||||
echo "No changes detected. Skipping build."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Prepare Python environment
|
- name: Prepare Python environment
|
||||||
run: |
|
run: |
|
||||||
mv /lib/python3*/EXTERNALLY-MANAGED .
|
mv /lib/python3*/EXTERNALLY-MANAGED .
|
||||||
@@ -44,7 +37,7 @@ jobs:
|
|||||||
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@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: arch-setup
|
name: arch-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
@@ -66,13 +59,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apt install -y python3 python3-pip binutils
|
apt install -y python3 python3-pip binutils
|
||||||
|
|
||||||
- name: Check for changes
|
|
||||||
run: |
|
|
||||||
if ! git diff --name-only $GITEA_BEFORE_SHA $GITEA_SHA; then
|
|
||||||
echo "No changes detected. Skipping build."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Prepare Python environment
|
- name: Prepare Python environment
|
||||||
run: |
|
run: |
|
||||||
mv /lib/python*/EXTERNALLY-MANAGED .
|
mv /lib/python*/EXTERNALLY-MANAGED .
|
||||||
@@ -83,7 +69,7 @@ jobs:
|
|||||||
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@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: debian-setup
|
name: debian-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
@@ -105,13 +91,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dnf install -y python python-pip binutils
|
dnf install -y python python-pip binutils
|
||||||
|
|
||||||
- name: Check for changes
|
|
||||||
run: |
|
|
||||||
if ! git diff --name-only $GITEA_BEFORE_SHA $GITEA_SHA; then
|
|
||||||
echo "No changes detected. Skipping build."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install inquirerpy distro pyinstaller
|
pip install inquirerpy distro pyinstaller
|
||||||
@@ -121,7 +100,7 @@ jobs:
|
|||||||
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@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: fedora-setup
|
name: fedora-setup
|
||||||
path: dist/setup
|
path: dist/setup
|
||||||
|
|||||||
Reference in New Issue
Block a user