Update .gitea/workflows/build.yml
This commit is contained in:
@@ -26,13 +26,6 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: arch-setup
|
||||
path: dist/setup
|
||||
@@ -66,13 +59,6 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: debian-setup
|
||||
path: dist/setup
|
||||
@@ -105,13 +91,6 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: fedora-setup
|
||||
path: dist/setup
|
||||
|
||||
Reference in New Issue
Block a user