ci: add Gitea Actions workflow to automate building and releasing the Electron application.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
This commit is contained in:
@@ -7,19 +7,21 @@ on:
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
container: electronuserland/builder:wine
|
||||
container:
|
||||
image: electronuserland/builder:wine
|
||||
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
|
||||
apt-get update && apt-get install -y jq xvfb flatpak flatpak-builder elfutils xdg-dbus-proxy
|
||||
|
||||
- name: Setup Flatpak runtimes
|
||||
run: |
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak install -y flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user