mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-01-12 03:10:08 +00:00
rpi-test-image is based on core-image-base but includes more packages that this layer provides. In this way we can have CI test more recipe updates. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Builds
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
machine:
|
|
- raspberrypi
|
|
- raspberrypi0-2w-64
|
|
- raspberrypi0-2w
|
|
- raspberrypi0
|
|
- raspberrypi0-wifi
|
|
- raspberrypi2
|
|
- raspberrypi3-64
|
|
- raspberrypi3
|
|
- raspberrypi4-64
|
|
- raspberrypi4
|
|
- raspberrypi-cm3
|
|
- raspberrypi-cm
|
|
image: [rpi-test-image]
|
|
distro: [poky]
|
|
runs-on: [self-hosted, Linux]
|
|
name: ${{ matrix.machine }}/${{ matrix.image }}/poky/systemd
|
|
env:
|
|
DL_DIR: /var/lib/ci/yocto/downloads
|
|
SSTATE_DIR: /var/lib/ci/yocto/sstate
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Build a temporary yocto-builder image
|
|
uses: ./.github/actions/docker-build
|
|
with:
|
|
docker_image: yocto-builder
|
|
id: ${{ github.event.number }}
|
|
- name: Build the image
|
|
run: |
|
|
docker run --rm \
|
|
-v "$GITHUB_WORKSPACE:/work:ro" \
|
|
-v "$DL_DIR:$DL_DIR:rw" \
|
|
-v "$SSTATE_DIR:$SSTATE_DIR:rw" \
|
|
--env "BASE_REF=$GITHUB_BASE_REF" \
|
|
--env "MACHINE=${{ matrix.machine }}" \
|
|
--env "DISTRO=${{ matrix.distro }}" \
|
|
--env "IMAGE=${{ matrix.image }}" \
|
|
--env "DL_DIR=$DL_DIR" \
|
|
--env "SSTATE_DIR=$SSTATE_DIR" \
|
|
"yocto-builder-${{ github.event.number }}" \
|
|
/entrypoint-build.sh
|
|
- name: Cleanup temporary docker image
|
|
uses: ./.github/actions/docker-clean-image
|
|
with:
|
|
docker_image: yocto-builder-${{ github.event.number }}
|
|
if: always()
|
|
- name: Cleanup dangling docker images
|
|
uses: ./.github/actions/docker-clean-dangling
|
|
if: always()
|