From 0d0b37929d4f25aae8e52e7007036debdc09a000 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Fri, 24 May 2024 15:47:21 -0400 Subject: [PATCH] Flatter --- .github/workflows/flatter.yml | 74 +++++++++++++++++++++++++++++++++++ .gitmodules | 3 ++ index.html | 6 +++ org.unmojang.FjordLauncher | 1 + 4 files changed, 84 insertions(+) create mode 100644 .github/workflows/flatter.yml create mode 100644 .gitmodules create mode 100644 index.html create mode 160000 org.unmojang.FjordLauncher diff --git a/.github/workflows/flatter.yml b/.github/workflows/flatter.yml new file mode 100644 index 0000000..fee0514 --- /dev/null +++ b/.github/workflows/flatter.yml @@ -0,0 +1,74 @@ +name: Flatter + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + flatter: + name: Flatter + runs-on: ubuntu-latest + container: + image: ghcr.io/andyholmes/flatter/gnome:44 + options: --privileged + + strategy: + matrix: + arch: [x86_64, aarch64] + fail-fast: false + # Only one job at a time can use the shared repository cache + max-parallel: 1 + + steps: + # Checkout a repository with Flatpak manifests + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + # See "Multiple Architectures" below + - name: Setup QEMU + if: ${{ matrix.arch == 'aarch64' }} + id: qemu + uses: docker/setup-qemu-action@v3 + with: + platforms: arm64 + + - name: Install Flatpak dependencies + run: | + flatpak install --noninteractive org.freedesktop.Sdk.Extension.openjdk21/${{ matrix.arch }}/23.08 + flatpak install --noninteractive org.freedesktop.Sdk.Extension.openjdk17/${{ matrix.arch }}/23.08 + flatpak install --noninteractive org.freedesktop.Sdk.Extension.openjdk8/${{ matrix.arch }}/23.08 + flatpak install --noninteractive org.kde.Sdk/${{ matrix.arch }}/6.7 + flatpak install --noninteractive org.kde.Platform/${{ matrix.arch }}/6.7 + + - name: Build + uses: andyholmes/flatter@main + with: + files: | + org.unmojang.FjordLauncher/org.unmojang.FjordLauncher.yml + arch: ${{ matrix.arch }} + gpg-sign: ${{ steps.gpg.outputs.fingerprint }} + upload-bundles: true + upload-pages-artifact: ${{ matrix.arch == 'x86_64' }} + upload-pages-includes: | + index.html + + # See "Github Pages" below + deploy: + name: Deploy + runs-on: ubuntu-latest + needs: flatter + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a55215e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "org.unmojang.FjordLauncher"] + path = org.unmojang.FjordLauncher + url = https://github.com/unmojang/org.unmojang.FjordLauncher diff --git a/index.html b/index.html new file mode 100644 index 0000000..61601e2 --- /dev/null +++ b/index.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/org.unmojang.FjordLauncher b/org.unmojang.FjordLauncher new file mode 160000 index 0000000..e4d8fe3 --- /dev/null +++ b/org.unmojang.FjordLauncher @@ -0,0 +1 @@ +Subproject commit e4d8fe353365da733e45afee0c762a31dd61db33