Skip to content

Commit f49a4ec

Browse files
Alex J Lennoncursoragent
andcommitted
CI: exclude ARM32, add yocto-check-layer, flush stale sstate
- Exclude styhead + arm matrix entry (ARM32 GCC build broken, see README and discussions/234) - Add yocto-check-layer compliance check step (runs on feature/yocto-layer-compliance branch) - Add temporary cleansstate step to flush stale dotnet sstate and recipe-sysroot-native from prior broken builds; remove once all matrix jobs have rebuilt successfully - Add feature/yocto-layer-compliance to push/PR branch triggers Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de60571 commit f49a4ec

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/CI_github.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
branches:
66
- master
7+
- feature/yocto-layer-compliance
78
pull_request:
9+
branches:
10+
- master
11+
- feature/yocto-layer-compliance
812
paths-ignore:
913
- "**.md"
1014
jobs:
@@ -20,6 +24,10 @@ jobs:
2024
mono_version: [6.12.0.206]
2125
branch: [styhead]
2226
arch: [x86-64, arm, arm64]
27+
exclude:
28+
# styhead GCC build broken for ARM32 - see README "Removal of support for ARM32" and discussions/234
29+
- branch: styhead
30+
arch: arm
2331
env:
2432
name: build-and-test
2533
MONO_VERSION: ${{ matrix.mono_version }}
@@ -69,7 +77,6 @@ jobs:
6977
echo "MACHINE = \"qemu${ARCH}\"" >> conf/local.conf
7078
echo "DL_DIR = \"$GITHUB_WORKSPACE/downloads\"" >> conf/local.conf
7179
echo "SSTATE_DIR = \"$GITHUB_WORKSPACE/sstate\"" >> conf/local.conf
72-
7380
echo "PREFERRED_VERSION_mono = \"${MONO_VERSION}\"" >> conf/local.conf
7481
echo "PREFERRED_VERSION_mono-native = \"${MONO_VERSION}\"" >> conf/local.conf
7582
@@ -82,10 +89,19 @@ jobs:
8289
8390
echo "BB_NUMBER_THREADS ?= \"\${@oe.utils.cpu_count()}\"" >> conf/local.conf
8491
echo "PARALLEL_MAKE ?= \"-j \${@oe.utils.cpu_count()} -l \${@oe.utils.cpu_count()*2}\"" >> conf/local.conf
85-
# - name: Cleaning
86-
# run: |
87-
# . ./${BRANCH}/poky/oe-init-build-env ${BRANCH}/build
88-
# bitbake -c cleanall test-image-mono dotnet dotnet-native
92+
- name: Yocto layer compliance check
93+
if: github.ref == 'refs/heads/feature/yocto-layer-compliance' || github.head_ref == 'feature/yocto-layer-compliance'
94+
run: |
95+
. ./${BRANCH}/poky/oe-init-build-env ${BRANCH}/build
96+
yocto-check-layer --dependency $GITHUB_WORKSPACE/${BRANCH}/poky/meta --dependency $GITHUB_WORKSPACE/${BRANCH}/meta-openembedded/meta-oe -- $GITHUB_WORKSPACE/${BRANCH}/meta-mono
97+
# Flush ALL stale sstate/sysroot from broken host/fxr commits.
98+
# Previous broken builds left host/fxr/10.0.0 in recipe-sysroot-native
99+
# directories. Must clean dotnet + all consumers to get fresh sysroots.
100+
# TODO: remove this step once all matrix jobs have rebuilt successfully.
101+
- name: Clean stale sstate
102+
run: |
103+
. ./${BRANCH}/poky/oe-init-build-env ${BRANCH}/build
104+
bitbake -c cleansstate dotnet dotnet-native python3-clr-loader python3-clr-loader-native dotnet-helloworld python3-pythonnet
89105
- name: Building Mono Test Image
90106
run: |
91107
. ./${BRANCH}/poky/oe-init-build-env ${BRANCH}/build

0 commit comments

Comments
 (0)