diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..6d676f5a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,58 @@ +name: Build Project + +on: + workflow_dispatch: + push: + branches: + - linux-actions + +env: + FLATPAK_ID: io.github.hedge_dev.unleashedrecomp + FREEDESKTOP_VERSION: 23.08 + LLVM_VERSION: 18 + +jobs: + build-flatpak: + name: Build Flatpak + runs-on: ubuntu-24.04 + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-44 + options: --privileged + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.ORG_TOKEN }} + + - name: Checkout private repository + uses: actions/checkout@v4 + with: + repository: ${{ secrets.ASSET_REPO }} + token: ${{ secrets.ASSET_REPO_TOKEN }} + path: flatpak/private + + - name: Install dependencies + run: |- + sudo apt-get update + sudo apt-get install -y ninja-build libsdl2-dev libgtk-3-dev + + - name: Prepare Flatpak + run: | + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + flatpak install -y flathub org.freedesktop.Sdk//${{env.FREEDESKTOP_VERSION}} + flatpak install -y flathub org.freedesktop.Sdk.Extension.llvm${{env.LLVM_VERSION}}//${{env.FREEDESKTOP_VERSION}} + + - name: Build Flatpak + uses: flatpak/flatpak-github-actions/flatpak-builder@master + with: + bundle: ${{env.FLATPAK_ID}}.flatpak + manifest-path: ./flatpak/${{env.FLATPAK_ID}}.json + upload-artifact: false + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: UnleashedRecomp-flatpak + path: ./${{env.FLATPAK_ID}}.flatpak \ No newline at end of file diff --git a/flatpak/io.github.hedge_dev.unleashedrecomp.json b/flatpak/io.github.hedge_dev.unleashedrecomp.json index a9393da1..80800f77 100644 --- a/flatpak/io.github.hedge_dev.unleashedrecomp.json +++ b/flatpak/io.github.hedge_dev.unleashedrecomp.json @@ -35,12 +35,12 @@ }, { "type": "file", - "path": "default.xex", + "path": "private/default.xex", "dest": "UnleashedRecompLib/private" }, { "type": "file", - "path": "shader.ar", + "path": "private/shader.ar", "dest": "UnleashedRecompLib/private" } ],