blob: 3d5baf8397c9f9c77856e5e2c46ef638c6cd46bc [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
2#
3# SPDX-License-Identifier: MIT
4
5name: Yocto Compatible
6
7on:
8 pull_request:
9
10jobs:
11 yocto-check-layer:
12 name: Validate with yocto-check-layer
13 runs-on: [self-hosted, Linux]
14 steps:
15 - name: Checkout the code
16 uses: actions/checkout@v2
17 with:
18 fetch-depth: 0
19 - name: Build a temporary yocto-builder image
20 uses: ./.github/actions/docker-build
21 with:
22 docker_image: yocto-builder
23 id: ${{ github.event.number }}
24 - name: Run yocto-check-layer
25 run: |
26 docker run --rm -v "$GITHUB_WORKSPACE:/work:ro" \
27 --env "BASE_REF=$GITHUB_BASE_REF" \
28 "yocto-builder-${{ github.event.number }}" \
29 /entrypoint-yocto-check-layer.sh
30 - name: Cleanup temporary docker image
31 uses: ./.github/actions/docker-clean-image
32 with:
33 docker_image: yocto-builder-${{ github.event.number }}
34 if: always()
35 - name: Cleanup dangling docker images
36 uses: ./.github/actions/docker-clean-dangling
37 if: always()