Move to GitHub: CI, release workflow and script; cursor and hover states

- ci.yml checks frontend types and build, core tests and that app and
  CLI compile on every push and pull request
- release.yml publishes a GitHub release with notes and checksums for
  tags; scripts/release.sh bumps the version everywhere, tags and pushes
- The Gitea workflow is gone; PKGBUILDs download from GitHub
- Every clickable element shows the pointer and has a hover state;
  disabled controls show not-allowed
- Dev-only fake backend (open the dev server with ?mock) for design work
- README: docs link, install per platform, development, releasing
This commit is contained in:
2026-11-27 21:48:19 +01:00
parent a73490e5d4
commit 14888c3748
22 changed files with 419 additions and 182 deletions
+34
View File
@@ -0,0 +1,34 @@
name: ci
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- uses: Swatinem/rust-cache@v2
- name: System libraries
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev
- run: npm ci
- name: Frontend types
run: npx svelte-check --tsconfig ./tsconfig.json
- name: Frontend build
run: npm run build
- name: Core tests
run: cargo test -p knock-core --locked
- name: App and CLI compile
run: cargo check --locked -p knock-app -p knock-cli
+15 -7
View File
@@ -1,8 +1,8 @@
name: release
# Runs on the GitHub mirror only (Gitea uses .gitea/workflows). macOS and
# Windows minutes are expensive on private repositories, so this runs for
# tags and on demand, not on every push.
# Push a tag vX.Y.Z (scripts/release.sh does it) and this builds every
# platform and publishes a GitHub release. Manual runs build without
# releasing; pick platforms to save macOS and Windows minutes.
on:
push:
tags: ['v*']
@@ -129,13 +129,21 @@ jobs:
- uses: actions/download-artifact@v5
with:
path: artifacts
- name: Attach to the GitHub release
merge-multiple: true
- name: Checksums
run: |
cd artifacts
sha256sum * > SHA256SUMS
cat SHA256SUMS
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
pre=""
case "$TAG" in *-*) pre="--prerelease";; esac
gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1 \
|| gh release create "$TAG" -R "$GITHUB_REPOSITORY" --title "$TAG" --notes "" $pre
find artifacts -type f -exec gh release upload "$TAG" -R "$GITHUB_REPOSITORY" --clobber {} +
if gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
gh release upload "$TAG" -R "$GITHUB_REPOSITORY" --clobber artifacts/*
else
gh release create "$TAG" -R "$GITHUB_REPOSITORY" --title "knock ${TAG#v}" --generate-notes $pre artifacts/*
fi