From 5909c2de4c95591a0fcbd20d29397aa17586a850 Mon Sep 17 00:00:00 2001 From: xgui4 <134389196+xgui4@users.noreply.github.com> Date: Fri, 5 Jun 2026 17:40:56 -0400 Subject: [PATCH] rework the worflow for appimage and arch for the nightly build --- .github/workflows/nightly.yml | 60 +++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 64c0a60..1e87e51 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -63,35 +63,44 @@ jobs: name: installer-windows path: packages\windows\Output\*.exe - # --- JOB 3 : Making Arch Linux Packages --- build_arch_package: - name : "Build Arch Packages" - runs-on: ubuntu-latest - container: - image: archlinux - options: --privileged + name: "Build Arch Packages" + runs-on: ubuntu-latest + container: + image: archlinux:latest + options: --privileged + steps: + - name: Checkout repository + uses: actions/checkout@v4 - steps: - - run: sudo pacman -Syu - - uses: actions/checkout@v6.0.2 - - name: Build Arch Linux package - uses: FFY00/build-arch-package@v1 - with: - PKGBUILD: ${{ github.workspace }}/packages/linux/nigthly/PKGBUILD # HACK : test to see if it will work + - name: Setup build environment + run: | + echo "Starting System Update and installation of build tools" + pacman -Syu --noconfirm base-devel sudo + echo "Preparation of builduser" + useradd -m builduser + passwd -d builduser + echo "builduser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + chown -R builduser:builduser ${{ github.workspace }} + + - name: Build Arch Packages + run: | + cd ${{ github.workspace }}/packages/linux/nigthly + sudo -u builduser makepkg -s --noconfirm + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: packages-arch + path: | + ${{ github.workspace }}/packages/linux/nigthly/lce-qt-launcher-git-*.pkg.tar.zst - - name: Upload Artifact - uses: actions/upload-artifact@v7.0.1 - with: - name: packages-arch - path: | - $HOME/arch-packages/lce-qt-launcher-git-*.r?.*-?-any.pkg.tar.zst # --- JOB 4 : Making AppImage --- build_appimage: name: Build GNU/Linx AppImage runs-on: ubuntu-latest steps: - - run: sudo apt update && sudo apt upgrade - uses: actions/checkout@v6.0.2 - uses: actions/setup-python@v6.2.0 with: @@ -99,14 +108,17 @@ jobs: cache: 'pip' - name: Install dependencies - # FIXME : OSError: [Errno 8] Exec format error: '/tmp/tmppzq4xr4e/magick' Error: Process completed with exit code 1. run: | - python -m pip install --upgrade pip - pip install pyproject-appimage + sudo apt-get update + sudo apt-get install -y imagemagick + python -m pip install --upgrade pip + + - name: Buil AppImage + run: | pip install . + pip install pyproject-appimage pyproject-appimage --no-fuse || python -m pyproject_appimage --no-fuse - - name: Upload Artifact uses: actions/upload-artifact@v7.0.1 with: