mozsync/org.mozsync.App.yml
Philip Peterson 9341a75806 Run task build under a nice/memory-capped systemd scope
Repeated builds were getting SIGTERM'd or thrashing into swap when
competing with other heavy concurrent builds on the same machine.
Wraps the build in `systemd-run --user --scope` with a low CPU/IO
weight and a soft memory cap (throttles rather than kills), and caps
GOMAXPROCS so cgo doesn't spawn as many parallel cc1plus processes
compiling the vendored Qt6 binding layer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-30 05:31:27 -08:00

35 lines
814 B
YAML

app-id: org.mozsync.App
runtime: org.kde.Platform
runtime-version: "6.11"
sdk: org.kde.Sdk
base: io.qt.qtwebengine.BaseApp
base-version: "6.11"
command: mozsync
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
finish-args:
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --device=dri
build-options:
append-path: /usr/lib/sdk/golang/bin
env:
GOFLAGS: -mod=vendor
GOCACHE: /run/build/mozsync/.gocache
CGO_ENABLED: "1"
GOMAXPROCS: "2"
PKG_CONFIG_PATH: /app/lib/x86_64-linux-gnu/pkgconfig:/app/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig
modules:
- name: mozsync
buildsystem: simple
build-commands:
- go build -o mozsync .
- install -Dm755 mozsync /app/bin/mozsync
sources:
- type: dir
path: .