45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
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 2.5
|
|
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-opi-distrib\"" >> build/conf/local.conf
|
|
echo "SSTATE_DIR = \"/build/sstate\"" >> build/conf/local.conf
|
|
echo "CACHE = \"/build/diya-opi-distrib-cache\"" >> build/conf/local.conf
|
|
# echo "BB_NUMBER_THREADS = \"2\"" >> build/conf/local.conf
|
|
# echo "PARALLEL_MAKE = \"-j 2\"" >> build/conf/local.conf
|
|
- name: build image for Orpi
|
|
run: |
|
|
cd poky && source oe-init-build-env ../build
|
|
printenv
|
|
cat conf/*.conf
|
|
bitbake core-image-base
|
|
- name: build sdk for Orpi
|
|
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
|