mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
ci: add pkgbuild-git tester
This commit is contained in:
45
.github/workflows/Test PKGBUILD-git.yml
vendored
Normal file
45
.github/workflows/Test PKGBUILD-git.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Test PKGBUILD-git
|
||||
|
||||
on:
|
||||
push:
|
||||
branch: master
|
||||
pull_request:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: archlinux:latest
|
||||
|
||||
steps:
|
||||
- name: Setup Arch
|
||||
run: |
|
||||
pacman -Sy --noconfirm --needed base-devel git sudo
|
||||
useradd -m builder
|
||||
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set permissions
|
||||
run: chown -R builder:builder .
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
sudo -u builder bash -c '
|
||||
cd AUR
|
||||
makepkg -p PKGBUILD-git -si --noconfirm
|
||||
'
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
clrsync_cli --help
|
||||
pacman -Ql clrsync-git
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: clrsync-git
|
||||
path: AUR/*.pkg.tar.zst
|
||||
Reference in New Issue
Block a user