Skip to content

Commit

Permalink
CI: Update AppImage build workflow to avoid using actions/checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Dec 12, 2024
1 parent c9025d8 commit 3ca2a90
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,46 @@ 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
- name: Build Linux AppImage
run: xvfb-run make linux
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 .
- run: |
apt-get remove nodejs
nvm install 16.15.1
- run: node --version
- name: Upload Mu AppImage
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
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

0 comments on commit 3ca2a90

Please sign in to comment.