The AUR packages i mintain
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(github): create the release workflow

+72
+72
.github/workflows/release.yml
··· 1 + name: build-arch-packages 2 + 3 + on: 4 + push: 5 + tags: 6 + - "v*" 7 + 8 + jobs: 9 + build: 10 + runs-on: ubuntu-latest 11 + container: 12 + image: archlinux:latest 13 + 14 + steps: 15 + - name: Checkout 16 + uses: actions/checkout@v6 17 + 18 + - name: Cache Pacman packages 19 + uses: actions/cache@v5 20 + with: 21 + path: /var/cache/pacman/pkg 22 + key: pacman-cache-${{ runner.os }}-${{ github.run_id }} 23 + restore-keys: | 24 + pacman-cache-${{ runner.os }}- 25 + 26 + - name: Cache Makepkg sources 27 + uses: actions/cache@v5 28 + with: 29 + path: /srcdest 30 + key: makepkg-src-${{ runner.os }}-${{ github.run_id }} 31 + restore-keys: | 32 + makepkg-src-${{ runner.os }}- 33 + 34 + - name: Install dependencies & configure environment 35 + run: | 36 + pacman -Syu --noconfirm --needed base-devel git 37 + 38 + useradd -m builder 39 + echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers 40 + 41 + mkdir -p /srcdest /pkgdest 42 + chown -R builder:builder . /srcdest /pkgdest 43 + 44 + sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j$(nproc)\"/g" /etc/makepkg.conf 45 + sed -i "s|#SRCDEST=/home/sources.*|SRCDEST=/srcdest|g" /etc/makepkg.conf 46 + sed -i "s|#PKGDEST=/home/packages.*|PKGDEST=/pkgdest|g" /etc/makepkg.conf 47 + sed -i "s/COMPRESSZST=(zstd -c -T0 --ultra -20 -)/COMPRESSZST=(zstd -c -T0 -)/g" /etc/makepkg.conf 48 + 49 + - name: Build packages 50 + run: | 51 + su builder -c ' 52 + shopt -s nullglob 53 + for dir in */; do 54 + case "$dir" in 55 + .git/|.github/|.templates/) continue ;; 56 + esac 57 + if [ -f "$dir/PKGBUILD" ]; then 58 + cd "$dir" 59 + makepkg -s --noconfirm --needed 60 + cd .. 61 + fi 62 + done 63 + ' 64 + 65 + - name: Upload to release 66 + uses: softprops/action-gh-release@v2 67 + with: 68 + files: /pkgdest/*.pkg.tar.* 69 + make_latest: true 70 + generate_release_notes: true 71 + env: 72 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}