From af78a840f0d1250e191816018acf5076124a2e03 Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Mon, 28 Sep 2026 18:52:40 -0400 Subject: [PATCH] ci: build and publish plasma package on arm64 --- .github/workflows/build-plasma.yml | 61 ++++++++++++++++++++++++++++++ catalog/shells.json | 6 +++ 2 files changed, 67 insertions(+) create mode 100644 .github/workflows/build-plasma.yml create mode 100644 catalog/shells.json diff --git a/.github/workflows/build-plasma.yml b/.github/workflows/build-plasma.yml new file mode 100644 index 0000000000..36eda092ee --- /dev/null +++ b/.github/workflows/build-plasma.yml @@ -0,0 +1,61 @@ +name: Build KDE Plasma package + +# The Plasma shell package (tools/plasma): Arch Linux ARM's KWin and Plasma, closed over their +# dependencies less what the runtime and the desktop package already carry, installed over both in +# a smoke test on an arm64 runner, and published as a release asset that catalog/shells.json names. +on: + push: + paths: + - 'tools/plasma/**' + - '.github/workflows/build-plasma.yml' + workflow_dispatch: + inputs: + tag: + description: 'Release tag to publish as (e.g. plasma-r1); empty = artifact only' + required: false + default: '' + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-24.04-arm + timeout-minutes: 120 + steps: + - uses: actions/checkout@v4 + - name: Build + run: bash tools/plasma/build.sh out + - name: Smoke test over the runtime and the desktop + run: bash tools/plasma/smoke-test.sh out/plasma.tar.zst + - uses: actions/upload-artifact@v4 + with: + name: plasma + path: | + out/plasma.tar.zst + out/plasma.sha256 + out/plasma.packages.txt + - name: Catalog entry + run: | + set -euo pipefail + tag=${{ inputs.tag || 'plasma-rN' }} + size=$(stat -c %s out/plasma.tar.zst) + sha=$(cat out/plasma.sha256) + { + echo "### catalog/shells.json entry" + echo '```json' + printf '{ "id": "plasma", "name": "KDE Plasma", "tier": 1, "version": "%s", "kind": "tar",\n' "${tag#plasma-}" + printf ' "url": "https://github.com/%s/releases/download/%s/plasma.tar.zst",\n' "$GITHUB_REPOSITORY" "$tag" + printf ' "sha256": "%s", "size": %s,\n' "$sha" "$size" + printf ' "notes": "KWin and plasmashell over the desktop package; Dolphin, Konsole, System Settings" }\n' + echo '```' + } >> "$GITHUB_STEP_SUMMARY" + - name: Publish + if: github.event_name == 'workflow_dispatch' && inputs.tag != '' + env: + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + cd out + gh release create "${{ inputs.tag }}" --title "${{ inputs.tag }}" --notes "KDE Plasma for the desktop: tools/plasma/seeds.txt over Arch Linux ARM, less the runtime's and the desktop package's own packages (Qt and KDE libraries shipped again). Extracts over the desktop package. sha256 $(cat plasma.sha256)" plasma.tar.zst plasma.sha256 plasma.packages.txt \ + || gh release upload "${{ inputs.tag }}" plasma.tar.zst plasma.sha256 plasma.packages.txt --clobber diff --git a/catalog/shells.json b/catalog/shells.json new file mode 100644 index 0000000000..733418a7d3 --- /dev/null +++ b/catalog/shells.json @@ -0,0 +1,6 @@ +{ + "schemaVersion": 1, + "category": "droiddeck-shells", + "note": "Desktop shells the app installs over the desktop package when one is chosen in the Desktop settings. Built by .github/workflows/build-plasma.yml, whose run summary prints the entry to paste here.", + "packages": [] +}