ci/common: rework EXTRA_IMAGE_FEATURES #721
Workflow file for this run
This file contains 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
name: "[pr]-[glibc]-[qemuarm64]" | |
on: pull_request | |
jobs: | |
buildrun: | |
name: "build" | |
env: | |
BUILD_EXPORT: 1 | |
SCM_BRANCH: master | |
BUILD_GLIBC: 1 | |
BUILD_KERNEL: 1 | |
BUILD_MAXRUNTIME: 21000 | |
BUILD_QEMUSYSTEM: 1 | |
PYTHONIOENCODING: utf8 | |
LC_ALL: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
LANGUAGE: en_US.UTF-8 | |
WORKSPACE: /opt/build | |
TOPDIR: /opt/build | |
TEMPLATECONF: /opt/build/sources/meta-rubygems/conf/templates/rubygems-arm64-glibc | |
runs-on: ubuntu-latest | |
container: | |
image: privkweihmann/yocto-sca-minimal:2004 | |
volumes: | |
- ${{ github.workspace }}:/opt/build | |
options: --privileged --user=yoctouser | |
steps: | |
- name: setup (container) | |
uses: priv-kweihmann/meta-sca-ci-utils/preparecontainer@latest | |
- name: checkout (poky) | |
uses: priv-kweihmann/meta-sca-ci-utils/addlayer@latest | |
with: | |
repo: git://git.yoctoproject.org/poky.git | |
ref: e366c7a67175e219322eba5dc7bdfb6f42a1bfcf | |
branch: none | |
add-layer: "0" | |
- name: checkout (meta-rubygems) | |
uses: priv-kweihmann/meta-sca-ci-utils/addlayer@latest | |
with: | |
repo: auto-determine | |
branch: auto-determine | |
gh-event-file: "1" | |
add-layer: "0" | |
- name: checkout (meta-openembedded) | |
uses: priv-kweihmann/meta-sca-ci-utils/addlayer@latest | |
with: | |
repo: git://git.openembedded.org/meta-openembedded | |
ref: c00b1fcc7cfe5f9cbf30032d366852b7024a900b | |
branch: none | |
add-layer: "0" | |
- name: configure (caches) | |
id: caches | |
uses: actions/cache@v3 | |
with: | |
path: /opt/build/sstate-cache | |
key: rubygems-arm64-glibc-${{ env.SCM_BRANCH }}-${{ github.base_ref }} | |
restore-keys: | | |
rubygems-arm64-glibc-${{ env.SCM_BRANCH }}- | |
- name: configure (caches fallback) | |
if: ${{ ! steps.caches.outputs.cache-hit }} | |
run: | | |
mkdir -p /opt/build/sstate-cache | |
- name: activate (caches) | |
uses: priv-kweihmann/meta-sca-ci-utils/addvar@latest | |
with: | |
variable: SSTATE_DIR | |
value: "${WORKSPACE}/sstate-cache" | |
- name: build (glibc) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: glibc | |
ignore-exit-codes: 124 137 | |
- name: build (kernel) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: linux-yocto | |
ignore-exit-codes: 124 137 | |
- name: build (qemu-system) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: qemu-system-native | |
ignore-exit-codes: 124 137 | |
- name: build (tools 1st part) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "openssl perl" | |
ignore-exit-codes: 124 137 | |
- name: build (tools 2nd part) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "ruby gmp yajl libxml2 libxslt krb5 libffi" | |
ignore-exit-codes: 124 137 | |
- name: build (core-image-minimal-rubygems) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: core-image-minimal-rubygems | |
ignore-exit-codes: 124 137 | |
- name: test (core-image-minimal-rubygems) | |
uses: priv-kweihmann/meta-sca-ci-utils/testimage@latest | |
with: | |
target: core-image-minimal-rubygems | |
tapgen: "0" | |
- name: print disk usage | |
if: always() | |
uses: priv-kweihmann/meta-sca-ci-utils/diskusage@latest | |