Add CI
All checks were successful
PostmarketOS Build / Prepare (push) Successful in 13s
PostmarketOS Build / Build for x86_64 (push) Successful in 1m16s
PostmarketOS Build / Build for aarch64 (push) Successful in 1m2s

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-07-10 20:01:44 +03:00
parent 8aeef05084
commit c37bd1caae
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,46 @@
name: PostmarketOS Build
run-name: PostmarketOS Build
on:
push:
workflow_dispatch:
jobs:
prepare:
name: Prepare
runs-on: Pmbootstrap
outputs:
time: ${{ steps.time.outputs.time }}
steps:
- name: Set start Time
id: time
shell: sh
run: echo time=$(date +"%Y%m%d%H%M%S") >> $GITHUB_OUTPUT
- name: Update pmbootstrap
uses: actions/pmbootstrap-update@master
build:
name: Build for ${{ matrix.info.arch }}
runs-on: Pmbootstrap
strategy:
matrix:
info:
- arch: x86_64
- arch: aarch64
needs: prepare
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build packages
id: build
uses: actions/pmbootstrap-build@main
with:
name: phosh-plugin-mediaplayer
aports: ${{github.workspace}}/package/alpine
arch: ${{ matrix.info.arch }}
src: ${{github.workspace}}
time: ${{ needs.prepare.outputs.time }}
- name: "Upload packages"
uses: actions/upload-alpine-package@main
with:
files: ${{steps.build.outputs.packages}}
secret: ${{secrets.PACKAGE_TOKEN}}

36
package/alpine/APKBUILD Normal file
View file

@ -0,0 +1,36 @@
pkgname=phosh-plugin-mediaplayer
pkgver=0.1.0
pkgrel=0
pkgdesc="Beautify phosh player"
url="https://git.nekocwd.duckdns.org/NekoCWD/phosh-media-player"
arch="all"
license="GPL-3.0-only"
makedepends="
cmake
desktop-file-utils
gettext-dev
meson
vala
blueprint-compiler-dev
libgee-dev
libphosh-dev
phosh-dev
"
source=""
builddir="$srcdir/phosh-media-player-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=""