From d4aeb4d22fd9314d673730a216e4e06c8a740826 Mon Sep 17 00:00:00 2001 From: OpenEmbedded Date: Sat, 12 Jul 2025 22:01:31 +0200 Subject: [PATCH] feat(ci): add build pipelines --- .gitea/workflows/ci.yml | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..48c410d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,51 @@ +name: diya-pinephone-distrib +run-name: Building diya-pinephone-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-pinephone-distrib\"" >> build/conf/local.conf + echo "SSTATE_DIR = \"/build/sstate\"" >> build/conf/local.conf + echo "CACHE = \"/build/diya-pinephone-distrib-cache\"" >> build/conf/local.conf + echo "BB_CACHEDIR = \"/build/diya-pinephone-distrib-cache\"" >> build/conf/local.conf + echo "PERSISTENT_DIR = \"/build/diya-pinephone-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 booloader for Pinephone + run: | + cd poky && source oe-init-build-env ../build + printenv + bitbake u-boot + - name: build image for Pinephone + run: | + cd poky && source oe-init-build-env ../build + printenv + bitbake core-image-base + - name: build sdk for Pinephone + run: | + cd poky && source oe-init-build-env ../build + bitbake core-image-base -c populate_sdk + - name: build x86_64 qemu image + run: | + cd poky && source oe-init-build-env ../build + MACHINE=qemux86-64 bitbake core-image-base + - name: build x86_64 qemu sdk + run: | + cd poky && source oe-init-build-env ../build + MACHINE=qemux86-64 bitbake core-image-base -c populate_sdk