From 6383f22dae063b0732a68d279c934fd82828d998 Mon Sep 17 00:00:00 2001 From: Vasiliy Doylov Date: Sat, 7 Jun 2025 00:02:59 +0300 Subject: [PATCH] CI: Add forgejo CI Signed-off-by: Vasiliy Doylov --- .forgejo/workflows/build-alpine.yaml | 31 ++++++++++++++++++++++++ misc/alpine/APKBUILD | 36 ++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .forgejo/workflows/build-alpine.yaml create mode 100644 misc/alpine/APKBUILD diff --git a/.forgejo/workflows/build-alpine.yaml b/.forgejo/workflows/build-alpine.yaml new file mode 100644 index 0000000..ceeea32 --- /dev/null +++ b/.forgejo/workflows/build-alpine.yaml @@ -0,0 +1,31 @@ +name: PostmarketOS Build +run-name: PostmarketOS Build +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: Pmbootstrap + strategy: + matrix: + info: + - arch: aarch64 + - arch: x86_64 + name: Build for ${{ matrix.info.arch }} + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Build package + id: build + uses: actions/pmbootstrap-build@main + with: + name: pipetap + aports: ${{github.workspace}}/misc/alpine + arch: ${{ matrix.info.arch }} + src: ${{github.workspace}} + - name: "Upload packages" + uses: actions/upload-alpine-package@main + with: + files: ${{steps.build.outputs.packages}} + secret: ${{secrets.PACKAGE_TOKEN}} diff --git a/misc/alpine/APKBUILD b/misc/alpine/APKBUILD new file mode 100644 index 0000000..031de61 --- /dev/null +++ b/misc/alpine/APKBUILD @@ -0,0 +1,36 @@ +pkgname=pipetap +pkgver=0.1.0 +pkgrel=0 +pkgdesc="Gtk4 + Vala PipeWire camera control overlay." +url="https://git.nekocwd.duckdns.org/NekoCWD/pipetap" +arch="all" +license="GPL-3.0-only" +makedepends=" + cmake + desktop-file-utils + gettext-dev + libadwaita-dev + wireplumber-dev + meson + vala + gtk4-layer-shell-dev + blueprint-compiler-dev + " +source="" +builddir="$srcdir/pipetap-v$pkgver" + +build() { + abuild-meson \ + . output + meson compile -C output +} + +check() { + meson test --print-errorlogs -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums=""