forked from mendersoftware/meta-mender-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Josef Holzmayr <[email protected]>
- Loading branch information
1 parent
559e5c1
commit 5d26968
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: build boards | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ["build boards"] | ||
types: | ||
- completed | ||
|
||
env: | ||
BUILDDIR: gh-validation | ||
|
||
jobs: | ||
prepare: | ||
runs-on: [self-hosted, linux, x64] | ||
steps: | ||
- name: Clean up | ||
run: rm -fR $BUILDDIR | ||
- uses: actions/checkout@v4 | ||
- name: cache metadata layers | ||
run: ./ci/update-repos | ||
env: | ||
LAYERCACHE: ${{ vars.PERSISTENT_DIR }}/layers | ||
|
||
build: | ||
needs: [prepare] | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
board: [ | ||
raspberrypi4, | ||
raspberrypi4-64, | ||
raspberrypi5, | ||
] | ||
experimental: [false] | ||
subpath: [.] | ||
|
||
runs-on: [self-hosted, linux, x64] | ||
container: | ||
# the container image needs to be effectively hardcoded, it seems. | ||
image: ghcr.io/theyoctojester/devcontainer-base-yoep:main | ||
volumes: | ||
- ${{ vars.PERSISTENT_DIR }}/downloads:${{ vars.BUILD_DL_DIR }} | ||
- ${{ vars.PERSISTENT_DIR }}/sstate-cache:${{ vars.BUILD_SSTATE_DIR }} | ||
- ${{ vars.PERSISTENT_DIR }}/layers:${{ vars.BUILD_LAYERCACHE_DIR }} | ||
- ${{ vars.PERSISTENT_DIR }}/assets:${{ vars.BUILD_ASSETS_DIR }} | ||
options: --user ${{ vars.KAS_UID }}:${{ vars.KAS_GID }} | ||
steps: | ||
- name: enter build dir and build | ||
env: | ||
DL_DIR: ${{ vars.BUILD_DL_DIR}} | ||
SSTATE_DIR: ${{ vars.BUILD_SSTATE_DIR}} | ||
KAS_REPO_REF_DIR: ${{ vars.BUILD_LAYERCACHE_DIR}} | ||
run: > | ||
mkdir -p $BUILDDIR/${{ matrix.board }} && | ||
cd $BUILDDIR/${{ matrix.board }} && | ||
kas checkout ../../kas/${{ matrix.subpath }}/${{ matrix.board }}.yml && | ||
if [ -f "${{ vars.BUILD_ASSETS_DIR }}/site.conf" ]; then | ||
cp ${{ vars.BUILD_ASSETS_DIR }}/site.conf build/conf/site.conf; | ||
fi && | ||
kas build ../../kas/${{ matrix.subpath }}/${{ matrix.board }}.yml:../../kas/include/validation.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
header: | ||
version: 14 | ||
|
||
repos: | ||
meta-mender-community: | ||
layers: | ||
meta-mender-validation: | ||
|
||
local_conf_header: | ||
validation: | | ||
IMAGE_INSTALL:append = " bootloader-validation " |