Add local release pipeline and migrate CI to GitHub Actions

Builds macOS DMG, Linux amd64 deb and AppImage from a single macOS
Apple Silicon machine using Podman containers. See RELEASE.md and
scripts/release for details.

Replaces Woodpecker CI with GitHub Actions workflows for lint, unit
tests, e2e tests, and Arch package validation.
This commit is contained in:
Rūdolfs Ošiņš
2026-03-19 17:15:06 -06:00
parent e48cc100a5
commit 3ef1eb612e
18 changed files with 550 additions and 391 deletions
+57
View File
@@ -0,0 +1,57 @@
on:
pull_request:
paths:
- 'arch/**'
push:
paths:
- 'arch/**'
workflow_dispatch:
jobs:
build-arch:
runs-on: ubuntu-latest
container:
image: archlinux:base-devel
options: --user root
steps:
- name: Install git
run: pacman -Sy --noconfirm git
- uses: actions/checkout@v4
- name: Set up builder user
run: |
useradd -m builder
echo 'builder ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/builder
chown -R builder:builder "$GITHUB_WORKSPACE"
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: /home/builder/.cargo/registry
key: arch-cargo-${{ hashFiles('arch/radicle-desktop/PKGBUILD') }}
restore-keys: arch-cargo-
- name: Install radicle-bin AUR dependency
run: |
cd /home/builder
git clone https://aur.archlinux.org/radicle-bin.git --depth=1
chown -R builder:builder radicle-bin
sudo -u builder makepkg --dir radicle-bin --install --syncdeps --noconfirm
- name: Check .SRCINFO is up-to-date
run: |
cd arch/radicle-desktop
sudo -u builder makepkg --printsrcinfo > .SRCINFO
sudo -u builder git -C "$GITHUB_WORKSPACE" diff --exit-code arch/radicle-desktop/.SRCINFO
- name: Build package
run: |
sudo -u builder env \
CI=true \
BUILDDIR=/home/builder/build \
PKGDEST=/home/builder \
SRCDEST=/home/builder \
makepkg --dir "$GITHUB_WORKSPACE/arch/radicle-desktop" \
--syncdeps --noconfirm --force
+45
View File
@@ -0,0 +1,45 @@
on:
pull_request:
push:
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
container:
image: quay.io/radicle_garden/radicle-desktop-e2e:latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: rust-e2e-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-e2e-
- name: Cache node_modules
id: cache-npm
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm ci
if: steps.cache-npm.outputs.cache-hit != 'true'
- name: Cache heartwood binaries
uses: actions/cache@v4
with:
path: tests/tmp/bin
key: heartwood-${{ hashFiles('tests/support/heartwood-release') }}
- run: scripts/install-binaries
- run: npm run build:http
- run: mkdir -p tests/artifacts
- name: Run e2e tests
run: npm run test:e2e -- --project webkit
+44
View File
@@ -0,0 +1,44 @@
on:
pull_request:
push:
workflow_dispatch:
jobs:
lint-typescript:
runs-on: ubuntu-latest
container:
image: node:22.11.0
steps:
- uses: actions/checkout@v4
- name: Cache node_modules
id: cache-npm
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm ci
if: steps.cache-npm.outputs.cache-hit != 'true'
- run: npm run check-js
lint-rust:
runs-on: ubuntu-latest
container:
image: quay.io/radicle_garden/radicle-desktop-base:latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: rust-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust-lint-
- run: scripts/check-rs
+25
View File
@@ -0,0 +1,25 @@
on:
pull_request:
push:
workflow_dispatch:
jobs:
unit-tests:
runs-on: ubuntu-latest
container:
image: node:22.11.0
steps:
- uses: actions/checkout@v4
- name: Cache node_modules
id: cache-npm
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- run: npm ci
if: steps.cache-npm.outputs.cache-hit != 'true'
- run: npm run test:unit