Files
radicle-explorer/.github/workflows/check-arch-package.yaml
T
Rūdolfs Ošiņš 3ef1eb612e 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.
2026-03-19 17:15:06 -06:00

58 lines
1.6 KiB
YAML

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