add build pipeline
This commit is contained in:
parent
b16e354ed8
commit
2c449c42d0
38
.gitea/workflows/ci.yml
Normal file
38
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: diya-opi-distrib
|
||||||
|
run-name: Building diya-opi-distrib
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ci-yocto-jammy
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- /home/yocto-build:/build
|
||||||
|
options: --cpus 3
|
||||||
|
timeout-minutes: 720
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Update submodule
|
||||||
|
run: git submodule update --init
|
||||||
|
- name: Init env
|
||||||
|
run: |
|
||||||
|
echo "" >> build/conf/local.conf
|
||||||
|
echo "DL_DIR = \"/build/download\"" >> build/conf/local.conf
|
||||||
|
echo "TMPDIR = \"/build/diya-rpi-distrib\"" >> build/conf/local.conf
|
||||||
|
echo "SSTATE_DIR = \"/build/sstate\"" >> build/conf/local.conf
|
||||||
|
echo "CACHE = \"/build/diya-rpi-distrib-cache\"" >> build/conf/local.conf
|
||||||
|
echo "BB_CACHEDIR = \"/build/diya-rpi-distrib-cache\"" >> build/conf/local.conf
|
||||||
|
echo "PERSISTENT_DIR = \"/build/diya-rpi-distrib-cache\"" >> build/conf/local.conf
|
||||||
|
echo "BB_NUMBER_THREADS = \"3\"" >> build/conf/local.conf
|
||||||
|
echo "PARALLEL_MAKE = \"-j 3\"" >> build/conf/local.conf
|
||||||
|
cat build/conf/*.conf
|
||||||
|
- name: build image for Raspberry pi 3
|
||||||
|
run: |
|
||||||
|
cd poky && source oe-init-build-env ../build
|
||||||
|
printenv
|
||||||
|
bitbake core-image-base
|
||||||
|
- name: build sdk for Raspberry pi 3
|
||||||
|
run: |
|
||||||
|
cd poky && source oe-init-build-env ../build
|
||||||
|
bitbake core-image-base -c populate_sdk
|
@ -1 +1 @@
|
|||||||
Subproject commit e8e3a82bfe8ad7ea39aa7f50146afbf99388461f
|
Subproject commit 21068dce9976a352ae3c653ef82756f3990761e8
|
Loading…
x
Reference in New Issue
Block a user