CI: Add forgejo CI
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
2bb70d5fd7
commit
6383f22dae
2 changed files with 67 additions and 0 deletions
31
.forgejo/workflows/build-alpine.yaml
Normal file
31
.forgejo/workflows/build-alpine.yaml
Normal file
|
@ -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}}
|
36
misc/alpine/APKBUILD
Normal file
36
misc/alpine/APKBUILD
Normal file
|
@ -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=""
|
Loading…
Add table
Add a link
Reference in a new issue