libcamera/.forgejo/workflows/build-alpine.yaml
Vasiliy Doylov 539efba259
Some checks failed
PostmarketOS Build / Prepare (push) Successful in 1s
PostmarketOS Build / Build for x86_64 (push) Failing after 6s
PostmarketOS Build / Build for aarch64 (push) Failing after 6s
CI: Add local forgejo CI
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-06-17 01:29:16 +03:00

49 lines
1.3 KiB
YAML

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 starttime
id: time
shell: sh
run: echo time=$(date +"%Y%m%d%H%M%S") >> $GITHUB_OUTPUT
build:
name: Build for ${{ matrix.info.arch }}
runs-on: Pmbootstrap
strategy:
matrix:
info:
- arch: x86_64
- arch: aarch64
steps:
- name: Remove libcamera aport
run: rm -rf ${{env.PMB_PMAPORTS}}/temp/libcamera
- name: Check out repository code
uses: actions/checkout@v4
- name: Build packages
id: build
uses: actions/pmbootstrap-build@main
with:
name: libcamera
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}}
- name: Reset pmaports changes
if: always()
continue-on-error: true
run: git -C ${{env.PMB_PMAPORTS}} reset --hard