system.conf: Remove absolute keyring path #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # generated by .github/workflows/generate.py | |
| name: meta-rauc-sunxi CI | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the master branch | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/meta-rauc-sunxi.yml' | |
| - 'meta-rauc-sunxi/**' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/meta-rauc-sunxi.yml' | |
| - 'meta-rauc-sunxi/**' | |
| # allow rebuilding without a push | |
| workflow_dispatch: {} | |
| jobs: | |
| build: | |
| name: meta-rauc-sunxi Build | |
| # run on self-hosted runner for the main repo or if vars.BUILD_RUNS_ON is set | |
| runs-on: >- | |
| ${{ | |
| (vars.BUILD_RUNS_ON != '' && fromJSON(vars.BUILD_RUNS_ON)) || | |
| (github.repository == 'rauc/meta-rauc-community' && fromJSON('["self-hosted", "forrest", "build"]')) || | |
| 'ubuntu-22.04' | |
| }} | |
| steps: | |
| - name: Install required packages | |
| run: | | |
| sudo apt-get -q -y --no-install-recommends install diffstat tree chrpath | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Clone bitbake | |
| run: git clone --shared --reference-if-able /srv/shared-git/bitbake.git -b master https://github.com/openembedded/bitbake.git | |
| - name: Clone openembedded-core | |
| run: git clone --shared --reference-if-able /srv/shared-git/openembedded-core.git -b master https://github.com/openembedded/openembedded-core.git | |
| - name: Clone meta-rauc | |
| run: git clone --shared --reference-if-able /srv/shared-git/meta-rauc.git -b master https://github.com/rauc/meta-rauc.git | |
| - name: Clone meta-arm | |
| run: git clone --shared --reference-if-able /srv/shared-git/meta-arm.git -b master https://git.yoctoproject.org/meta-arm.git | |
| - name: Clone meta-openembedded | |
| run: git clone --shared --reference-if-able /srv/shared-git/meta-openembedded.git -b master https://git.openembedded.org/meta-openembedded.git | |
| - name: Clone meta-sunxi | |
| run: git clone --shared --reference-if-able /srv/shared-git/meta-sunxi.git -b master https://github.com/linux-sunxi/meta-sunxi.git | |
| - name: Initialize build directory | |
| run: | | |
| source openembedded-core/oe-init-build-env build | |
| bitbake-layers add-layer ../meta-rauc | |
| bitbake-layers add-layer ../meta-arm/meta-arm-toolchain | |
| bitbake-layers add-layer ../meta-arm/meta-arm | |
| bitbake-layers add-layer ../meta-openembedded/meta-oe | |
| bitbake-layers add-layer ../meta-openembedded/meta-python | |
| bitbake-layers add-layer ../meta-sunxi | |
| bitbake-layers add-layer ../meta-rauc-sunxi | |
| if [ -f ~/.yocto/auto.conf ]; then | |
| cp ~/.yocto/auto.conf conf/ | |
| echo 'SOURCE_MIRROR_URL = "http://10.0.2.2/rauc-community/downloads"' >> conf/auto.conf | |
| else | |
| echo 'SSTATE_MIRRORS = "file://.* https://github-runner.pengutronix.de/rauc-community/sstate-cache/PATH"' >> conf/auto.conf | |
| echo 'BB_SIGNATURE_HANDLER = "OEBasicHash"' >> conf/auto.conf | |
| echo 'BB_HASHSERVE = ""' >> conf/auto.conf | |
| echo 'OPKGBUILDCMD = "opkg-build -Z gzip -a -1n"' >> conf/auto.conf | |
| echo 'INHERIT += "rm_work"' >> conf/auto.conf | |
| fi | |
| echo 'DISTRO_FEATURES:remove = "alsa bluetooth usbgadget usbhost wifi nfs zeroconf pci 3g nfc x11 opengl ptest wayland vulkan"' >> conf/local.conf | |
| echo 'MACHINE = "olinuxino-a10lime"' >> conf/local.conf | |
| echo 'DISTRO_FEATURES:append = " rauc"' >> conf/local.conf | |
| echo 'IMAGE_INSTALL:append = " rauc"' >> conf/local.conf | |
| echo 'IMAGE_FSTYPES = "ext4 wic.zst"' >> conf/local.conf | |
| echo 'WKS_FILE = "sunxi-dual-image.wks.in"' >> conf/local.conf | |
| echo 'INIT_MANAGER = "systemd"' >> conf/local.conf | |
| echo 'IMAGE_BOOT_FILES:append = " boot.scr"' >> conf/local.conf | |
| echo 'IMAGE_INSTALL:append = " rauc-grow-data-part"' >> conf/local.conf | |
| - name: Show configuration files | |
| run: | | |
| cd build/conf | |
| rgrep . *.conf | |
| - name: Test bitbake parsing | |
| run: | | |
| source openembedded-core/oe-init-build-env build | |
| bitbake -p | |
| - name: Build rauc, rauc-native | |
| run: | | |
| source openembedded-core/oe-init-build-env build | |
| bitbake rauc rauc-native | |
| - name: Build core-image-minimal | |
| run: | | |
| source openembedded-core/oe-init-build-env build | |
| bitbake core-image-minimal | |
| - name: Build RAUC Bundle | |
| run: | | |
| source openembedded-core/oe-init-build-env build | |
| bitbake update-bundle | |
| - name: Cache Data | |
| env: | |
| CACHE_KEY: ${{ secrets.YOCTO_CACHE_KEY }} | |
| if: ${{ !cancelled() && env.CACHE_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$CACHE_KEY" >> ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| rsync -rvx --ignore-existing build/downloads rauc-community-cache: || true | |
| rsync -rvx --ignore-existing build/sstate-cache rauc-community-cache: || true | |
| - name: Show Artifacts | |
| if: ${{ !cancelled() }} | |
| run: | | |
| cd build/tmp/deploy/images | |
| tree --du -h || true | |
| - name: Upload Artifacts | |
| uses: jluebbe/forrest-upload-artifact@summary | |
| with: | |
| path: | | |
| build/tmp/deploy/images/olinuxino-a10lime/core-image-minimal-olinuxino-a10lime.rootfs.manifest | |
| build/tmp/deploy/images/olinuxino-a10lime/core-image-minimal-olinuxino-a10lime.rootfs.spdx.json | |
| build/tmp/deploy/images/olinuxino-a10lime/core-image-minimal-olinuxino-a10lime.rootfs.testdata.json | |
| build/tmp/deploy/images/olinuxino-a10lime/core-image-minimal-olinuxino-a10lime.rootfs.wic.zst | |
| build/tmp/deploy/images/olinuxino-a10lime/update-bundle-olinuxino-a10lime.raucb |