CI: Update CI to use composite actions
All checks were successful
All checks were successful
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
a75ce62706
commit
e830fe0703
2 changed files with 31 additions and 12 deletions
|
@ -5,18 +5,26 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
prepare-aports:
|
||||||
|
name: Prepare pmaports
|
||||||
runs-on: Pmbootstrap
|
runs-on: Pmbootstrap
|
||||||
|
steps:
|
||||||
|
- name: Remove libcamera aport
|
||||||
|
run: rm -rf ${{env.PMB_PMAPORTS}}/temp/libcamera
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build for ${{ matrix.info.arch }}
|
||||||
|
runs-on: Pmbootstrap
|
||||||
|
needs: prepare-aports
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
info:
|
info:
|
||||||
- arch: x86_64
|
- arch: x86_64
|
||||||
- arch: aarch64
|
- arch: aarch64
|
||||||
name: Build for ${{ matrix.info.arch }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build package
|
- name: Build packages
|
||||||
id: build
|
id: build
|
||||||
uses: actions/pmbootstrap-build@main
|
uses: actions/pmbootstrap-build@main
|
||||||
with:
|
with:
|
||||||
|
@ -24,5 +32,19 @@ jobs:
|
||||||
aports: ${{github.workspace}}/misc/alpine
|
aports: ${{github.workspace}}/misc/alpine
|
||||||
arch: ${{ matrix.info.arch }}
|
arch: ${{ matrix.info.arch }}
|
||||||
src: ${{github.workspace}}
|
src: ${{github.workspace}}
|
||||||
- name: Print new packages
|
- name: "Upload packages"
|
||||||
run: echo "${{steps.build.outputs.packages}}"
|
uses: actions/upload-alpine-package@main
|
||||||
|
with:
|
||||||
|
files: ${{steps.build.outputs.packages}}
|
||||||
|
secret: ${{secrets.PACKAGE_TOKEN}}
|
||||||
|
|
||||||
|
clean-aports:
|
||||||
|
name: Clean pmaports
|
||||||
|
runs-on: Pmbootstrap
|
||||||
|
if: always()
|
||||||
|
needs:
|
||||||
|
- prepare-aports
|
||||||
|
- build
|
||||||
|
steps:
|
||||||
|
- name: Reset pmaports changes
|
||||||
|
run: git -C ${{env.PMB_PMAPORTS}} reset --hard
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Forked from Alpine for temporary downstream patches
|
|
||||||
|
|
||||||
pkgname=libcamera
|
pkgname=libcamera
|
||||||
_pkgver=0.5.0
|
pkgver=0.5.0
|
||||||
pkgver=9999$_pkgver
|
pkgrel=0
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Linux camera framework"
|
pkgdesc="Linux camera framework"
|
||||||
url="https://libcamera.org/"
|
url="https://libcamera.org/"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
@ -15,7 +12,7 @@ depends_dev="
|
||||||
gst-plugins-bad-dev
|
gst-plugins-bad-dev
|
||||||
qt6-qtbase-dev
|
qt6-qtbase-dev
|
||||||
"
|
"
|
||||||
# upstream calls 'date' with a non-POSIX option so we pull in coreutils
|
|
||||||
makedepends="$depends_dev
|
makedepends="$depends_dev
|
||||||
coreutils
|
coreutils
|
||||||
doxygen
|
doxygen
|
||||||
|
@ -42,7 +39,7 @@ subpackages="
|
||||||
$pkgname-tools
|
$pkgname-tools
|
||||||
"
|
"
|
||||||
source=""
|
source=""
|
||||||
builddir="$srcdir/$pkgname-v$_pkgver"
|
builddir="$srcdir/$pkgname"
|
||||||
# gstreamer tests fail
|
# gstreamer tests fail
|
||||||
# manual strip because ipa .sign files depend on the file contents- have to re-sign after strip
|
# manual strip because ipa .sign files depend on the file contents- have to re-sign after strip
|
||||||
options="!strip !check"
|
options="!strip !check"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue