From 468e42eff6515eaa979439abe9bb772bd1689e88 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 11 Oct 2024 15:30:27 +0100 Subject: [PATCH] ci: build-yocto: add dependency on check-layer job We should run the jobs with some interdependence. The check-layer job should be done first than the build jobs themselves and if the first one fails, the rest will no longer be executed. Also merge this two jobs since since there are dependencies between them. Signed-off-by: Jose Quaresma --- .github/workflows/build-yocto.yml | 12 ++++++++++++ .github/workflows/check-layer.yml | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/check-layer.yml diff --git a/.github/workflows/build-yocto.yml b/.github/workflows/build-yocto.yml index 541e8d20..9ae3d0d9 100644 --- a/.github/workflows/build-yocto.yml +++ b/.github/workflows/build-yocto.yml @@ -7,7 +7,19 @@ on: - main jobs: + yocto-check-layer: + runs-on: [self-hosted, x86] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run yocto-check-layer + run: | + ci/yocto-check-layer.sh + compile: + needs: yocto-check-layer strategy: fail-fast: true matrix: diff --git a/.github/workflows/check-layer.yml b/.github/workflows/check-layer.yml deleted file mode 100644 index 068061cf..00000000 --- a/.github/workflows/check-layer.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Yocto Check Layer - -on: - pull_request: - -jobs: - yocto-check-layer: - runs-on: [self-hosted, x86] - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Run yocto-check-layer - run: | - ci/yocto-check-layer.sh