From a96fff09ada11369b6cd7fc42a455b0ee583cb57 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Wed, 11 Dec 2024 23:17:18 +0000 Subject: [PATCH] CI: Update AppImage build workflow to avoid using actions/checkout. --- .github/workflows/build.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index adf0744d5..62a233e50 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,33 +57,44 @@ jobs: image: ghcr.io/mu-editor/mu-appimage:2022.05.01 name: Build AppImage steps: - - uses: actions/checkout@v4 - name: Display system info run: | uname -a cat /etc/lsb-release + ldd --version python -c "import sys; print(sys.version)" python -c "import platform, struct; print(platform.machine(), struct.calcsize('P') * 8)" python -c "import sys; print(sys.executable)" python -m pip --version pip --version pip list --verbose + - name: Clone Mu + run: | + mkdir mu && cd mu + git init + git remote add origin ${{ github.server_url }}/${{ github.repository }}.git + git fetch --progress --depth=100 origin ${{ github.sha }} + git checkout --progress FETCH_HEAD - name: Install Mu test dependencies run: | + cd mu pip install .[tests] pip list - - run: mkdir upload + - run: cd mu && mkdir upload - name: Build Linux AppImage - run: xvfb-run make linux + working-directory: ~/mu + run: | + cd mu + QT_QPA_PLATFORM=offscreen make linux # GitHub actions upload artifact breaks permissions, workaround using tar # https://github.com/actions/upload-artifact/issues/38 - name: Tar AppImage to maintain permissions run: | - cd dist/ + cd mu/dist/ tar -cvf Mu_Editor-AppImage-x86_64-${{ github.sha }}.tar *.AppImage ls -la . - name: Upload Mu AppImage uses: actions/upload-artifact@v4 with: name: mu-editor-${{ runner.os }}-${{ github.sha }} - path: dist/Mu_Editor-AppImage-x86_64-${{ github.sha }}.tar + path: mu/dist/Mu_Editor-AppImage-x86_64-${{ github.sha }}.tar