feat: Add Gitea Actions workflow for automated Electron application build and release.
Some checks failed
Build and Release / build-and-release (push) Failing after 20m22s

This commit is contained in:
Bryan1029384756
2026-02-11 20:59:09 -06:00
parent cc64e0b73b
commit fd67ccfd64

View File

@@ -8,27 +8,18 @@ jobs:
build-and-release: build-and-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: electronuserland/builder:wine image: moyettes/eb
options: --privileged options: --privileged
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install required tools
run: |
apt-get update && apt-get install -y jq xvfb flatpak flatpak-builder elfutils xdg-dbus-proxy
- name: Wrap flatpak-builder for Docker compatibility - name: Wrap flatpak-builder for Docker compatibility
run: | run: |
mv /usr/bin/flatpak-builder /usr/bin/flatpak-builder.real mv /usr/bin/flatpak-builder /usr/bin/flatpak-builder.real
printf '#!/bin/bash\nexec /usr/bin/flatpak-builder.real --disable-rofiles-fuse "$@"\n' > /usr/bin/flatpak-builder printf '#!/bin/bash\nexec /usr/bin/flatpak-builder.real --disable-rofiles-fuse "$@"\n' > /usr/bin/flatpak-builder
chmod +x /usr/bin/flatpak-builder chmod +x /usr/bin/flatpak-builder
- name: Setup Flatpak runtimes
run: |
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user install -y flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08
- name: Cache npm and Electron - name: Cache npm and Electron
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@@ -36,8 +27,6 @@ jobs:
~/.npm ~/.npm
~/.cache/electron ~/.cache/electron
~/.cache/electron-builder ~/.cache/electron-builder
~/.local/share/flatpak
/var/lib/flatpak
Frontend/Electron/node_modules Frontend/Electron/node_modules
node_modules node_modules
key: npm-electron-${{ hashFiles('package-lock.json', 'Frontend/Electron/package-lock.json') }} key: npm-electron-${{ hashFiles('package-lock.json', 'Frontend/Electron/package-lock.json') }}