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