Skip to content

Commit 7d5212b

Browse files
authored
Merge pull request #263 from openSVM/copilot/fix-c5e39021-2cd8-4812-b50f-5bc773ddaa23
Fix ArchLinux build failure: Use Docker container with makepkg support
2 parents fc183d7 + 83aba06 commit 7d5212b

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,24 @@ jobs:
147147
steps:
148148
- uses: actions/checkout@v4
149149

150-
- name: Create ArchLinux PKGBUILD
151-
run: |
152-
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
153-
cd packaging/archlinux
154-
./build-arch.sh "$VERSION"
150+
- name: Build (Arch PKGBUILD)
151+
uses: addnab/docker-run-action@v3
152+
with:
153+
image: archlinux:base-devel
154+
options: -v ${{ github.workspace }}:/workspace
155+
run: |
156+
pacman -Sy --noconfirm git base-devel sudo
157+
useradd -m builder
158+
echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
159+
chown -R builder:builder /workspace
160+
git config --global --add safe.directory /workspace
161+
sudo -u builder bash -c "
162+
cd /workspace
163+
git config --global --add safe.directory /workspace
164+
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
165+
cd packaging/archlinux
166+
./build-arch.sh \"\$VERSION\"
167+
"
155168
156169
- name: Upload ArchLinux package files
157170
uses: actions/upload-artifact@v4

packaging/archlinux/PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: OpenSVM <[email protected]>
22
pkgname=osvm
3-
pkgver=0.8.2-test
3+
pkgver=0.8.3
44
pkgrel=1
55
pkgdesc="OpenSVM CLI tool for managing SVM nodes and deployments"
66
arch=('x86_64' 'aarch64')
@@ -9,7 +9,7 @@ license=('MIT')
99
depends=('glibc')
1010
makedepends=('rust' 'cargo' 'pkg-config' 'openssl' 'systemd-libs')
1111
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/openSVM/osvm-cli/archive/v${pkgver}.tar.gz")
12-
sha256sums=('eaec5c0679db60874389d00acd89c000f41e8d928cf2cd6aa860df2b089ff802')
12+
sha256sums=('5af35631fd31c78a8a1305d9f2b54bff9d11feca3f3c637750838323f47ed29b')
1313

1414
prepare() {
1515
cd "${pkgname}-cli-${pkgver}"

0 commit comments

Comments
 (0)