2 Commits

Author SHA1 Message Date
Uyanide fe174ba2e0 🚀 CD
CI/CD / Package (push) Successful in 1m9s
CI/CD / Publish (push) Failing after 15s
2026-03-24 09:47:55 +01:00
Uyanide d8ab530fa8 🚀 CD
CI/CD / Package (push) Failing after 1m3s
CI/CD / Publish (push) Has been skipped
2026-03-24 09:27:31 +01:00
+15 -13
View File
@@ -23,7 +23,7 @@ jobs:
wget -qO source.tar.gz "$TAR_URL"
SHA256=$(sha256sum source.tar.gz | awk '{print $1}')
cat << EOF > PKGBUILD
cat << 'EOF' > PKGBUILD
# Maintainer: Uyanide <me@uyani.de>
pkgname=wallreel
pkgver=${{ env.VERSION }}
@@ -34,25 +34,27 @@ jobs:
license=('MIT')
depends=('qt6-base' 'qt6-declarative' 'gcc-libs' 'glibc')
makedepends=('cmake' 'ninja')
source=("\${pkgname}-\${pkgver}.tar.gz::https://git.uyani.de/Uyanide/WallReel/archive/v\${pkgver}.tar.gz")
sha256sums=('\$SHA256')
source=("${pkgname}-${pkgver}.tar.gz::https://git.uyani.de/Uyanide/WallReel/archive/v${pkgver}.tar.gz")
sha256sums=('INSERT_SHA256_HERE')
build() {
cd "wallreel"
cmake -B build -S . -G Ninja \\
-DCMAKE_BUILD_TYPE='Release' \\
-DCMAKE_INSTALL_PREFIX='/usr' \\
cmake -B build -S . -G Ninja \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
package() {
cd "wallreel"
DESTDIR="\$pkgdir" cmake --install build
install -Dm644 LICENSE "\$pkgdir/usr/share/licenses/\$pkgname/LICENSE"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
EOF
sed -i "s/INSERT_SHA256_HERE/$SHA256/" PKGBUILD
- name: Build and Generate AUR Meta
run: |
tar -cf - . | docker run --rm -i archlinux:latest /bin/bash -e -c "
@@ -63,19 +65,19 @@ jobs:
pacman-key --init && pacman-key --populate
pacman -Sy --noconfirm archlinux-keyring
pacman -Su --noconfirm base-devel cmake ninja qt6-base qt6-declarative sudo
useradd -m builduser
chown -R builduser:builduser /workspace
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
su - builduser -c 'cd /workspace && makepkg -sf --noconfirm'
su - builduser -c 'cd /workspace && makepkg --printsrcinfo > .SRCINFO'
tar -cf - *.pkg.tar.zst PKGBUILD LICENSE .SRCINFO >&3
" | tar -xf -
- name: Upload Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: |
@@ -93,7 +95,7 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Download Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: release-artifacts
path: .