]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Actions: add AppImage
authortobtoht <thotbot@protonmail.com>
Mon, 23 May 2022 13:26:18 +0000 (15:26 +0200)
committertobtoht <thotbot@protonmail.com>
Mon, 23 May 2022 13:26:18 +0000 (15:26 +0200)
.github/workflows/build.yml

index fe5411ab910e71352ee109b2fc03b4ea677aa988..8e5bd4d5b7f1d163bf0754df6f595a917792618e 100644 (file)
@@ -16,8 +16,6 @@ jobs:
           key: docker-linux-static-{hash}
           restore-keys: |
             docker-linux-static-
-      - name: install dependencies
-        run: sudo apt -y install xvfb libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0
       - name: prepare build environment
         run: docker build -t feather:linux -f Dockerfile.linux --build-arg THREADS=3 .
       - name: build
@@ -29,3 +27,30 @@ jobs:
           name: ${{ github.job }}
           path: |
             /home/runner/work/feather/feather/build/release/bin/feather
+
+  docker-linux-appimage:
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v1
+        with:
+          submodules: recursive
+      - uses: satackey/action-docker-layer-caching@v0.0.11
+        if: "!startsWith(github.ref, 'refs/tags/v')"
+        continue-on-error: true
+        with:
+          key: docker-linux-static-{hash}
+          restore-keys: |
+            docker-linux-static-
+      - name: prepare build environment
+        run: docker build -t feather:linux -f Dockerfile.linux --build-arg THREADS=3 .
+      - name: build
+        run: docker run --rm -v $PWD:/feather -w /feather feather:linux sh -c 'make release-static -j3'
+      - name: build AppImage
+        run: docker run --rm -v $PWD:/feather -w /feather/build feather:linux ../contrib/build-appimage.sh
+      - name: sha256sum
+        run: shasum -a256 /home/runner/work/feather/feather/build/feather.AppImage
+      - uses: actions/upload-artifact@v2
+        with:
+          name: feather.AppImage
+          path: |
+            /home/runner/work/feather/feather/build/feather.AppImage