Browse Source

Merge pull request #1558 from pfirsich/master

Add GitHub action steps to build AppImage
Alex Szpakowski 5 years ago
parent
commit
9e03bc3f0d
1 changed files with 21 additions and 1 deletions
  1. 21 1
      .github/workflows/main.yml

+ 21 - 1
.github/workflows/main.yml

@@ -3,7 +3,7 @@ on: [push, pull_request]
 
 
 jobs:
 jobs:
   linux-os:
   linux-os:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-16.04
     steps:
     steps:
     - name: Update APT
     - name: Update APT
       run: sudo apt-get update
       run: sudo apt-get update
@@ -20,6 +20,26 @@ jobs:
       run: mkdir build && cd build && ../configure
       run: mkdir build && cd build && ../configure
     - name: Build
     - name: Build
       run: cd build && make -j2
       run: cd build && make -j2
+    - name: Prepare appimagetool
+      run: |
+        cd build &&
+        wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool &&
+        chmod +x appimagetool &&
+        sudo apt install -y appstream
+    - name: Clone love-appimages
+      uses: actions/checkout@v2
+      with:
+        path: build/love-appimages
+        repository: pfirsich/love-appimages
+    - name: Build AppImage
+      run: |
+        cd build &&
+        python3 love-appimages/build.py .. AppDir --builddir build --appimage love.AppImage
+    - name: Artifact
+      uses: actions/upload-artifact@v2-preview
+      with:
+        name: love.AppImage
+        path: build/love.AppImage
   windows-os:
   windows-os:
     runs-on: windows-latest
     runs-on: windows-latest
     strategy:
     strategy: