Skip to content

Commit afab34d

Browse files
committed
chore: replace arch package creation step with docker command for improved reliability
1 parent 9f6e818 commit afab34d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ jobs:
113113
114114
- name: create arch package (ubuntu only)
115115
if: matrix.platform == 'ubuntu-22.04'
116-
uses: 2m/arch-pkgbuild-builder@v1.17
117-
with:
118-
debug: true
119-
target: pkgbuild
120-
pkgname: ${{ needs.setup.outputs.name_bin }}/
116+
run: |
117+
docker run --rm -v "$PWD/${{ needs.setup.outputs.name_bin }}:/pkg" archlinux:latest bash -c "
118+
pacman -Sy --noconfirm base-devel sudo &&
119+
useradd -m builder &&
120+
chown -R builder: /pkg &&
121+
cd /pkg &&
122+
sudo -u builder makepkg -f
123+
"
121124
122125
- name: upload arch && rpm release (ubuntu only)
123126
if: matrix.platform == 'ubuntu-22.04'

0 commit comments

Comments
 (0)