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
Some checks failed
Build and Release / build-and-release (push) Failing after 20m22s
This commit is contained in:
@@ -8,27 +8,18 @@ jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: electronuserland/builder:wine
|
||||
image: moyettes/eb
|
||||
options: --privileged
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
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
|
||||
run: |
|
||||
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
|
||||
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
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -36,8 +27,6 @@ jobs:
|
||||
~/.npm
|
||||
~/.cache/electron
|
||||
~/.cache/electron-builder
|
||||
~/.local/share/flatpak
|
||||
/var/lib/flatpak
|
||||
Frontend/Electron/node_modules
|
||||
node_modules
|
||||
key: npm-electron-${{ hashFiles('package-lock.json', 'Frontend/Electron/package-lock.json') }}
|
||||
|
||||
Reference in New Issue
Block a user