CI: Add local forgejo CI

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-07 02:22:30 +03:00 committed by Kitsune (Rebase Bot)
parent 98921d93d0
commit f7bf4c8d4f
3 changed files with 208 additions and 0 deletions

View file

@ -0,0 +1,58 @@
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
- name: Remove libcamera aport
run: rm -rf ${{env.PMB_PMAPORTS}}/temp/libcamera
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: 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}}
clean:
name: "Clean"
runs-on: Pmbootstrap
needs: build
if: always()
continue-on-error: true
steps:
- name: Update pmbootstrap
uses: actions/pmbootstrap-update@master

View file

@ -0,0 +1,18 @@
name: Sync fork with upstream
run-name: Sync fork with upstream
on:
schedule:
- cron: "@daily"
workflow_dispatch:
jobs:
sync:
name: Sync
runs-on: Misc
steps:
- name: Sync repository with upstream
uses: actions/sync-with-mirror@main
with:
secret: ${{ secrets.PUSH_TOKEN }}
name: libcamera
branch: master