From 46f94bf18ca46b81268178a59e3de81d828fde9f Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Thu, 31 Oct 2024 10:06:35 +0000 Subject: [PATCH] ci: nightly-build: use the build-yocto Reusing the build-yocto workflow since it has everything we need and avoids duplication of code. Ref https://docs.github.com/en/actions/sharing-automations/reusing-workflows Signed-off-by: Jose Quaresma --- .github/workflows/build-yocto.yml | 1 + .github/workflows/nightly-build.yml | 30 ++--------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build-yocto.yml b/.github/workflows/build-yocto.yml index edb8f7b3..68449d9c 100644 --- a/.github/workflows/build-yocto.yml +++ b/.github/workflows/build-yocto.yml @@ -1,6 +1,7 @@ name: Build Yocto on: + workflow_call: pull_request: push: branches: diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 8c0aa94b..2eff9503 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -7,31 +7,5 @@ on: - cron: "23 1 * * *" # daily job - pick a random "minute" - top of hour can be busy in github jobs: - compile: - if: github.repository == 'quic-yocto/meta-qcom-hwe' - strategy: - fail-fast: true - matrix: - machine: - - qcm6490-idp - - qcs6490-rb3gen2-core-kit - - sa8775p-ride-sx - runs-on: [self-hosted, x86] - name: ${{ matrix.machine }}/poky/systemd - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Kas build - run: | - # TODO - if the default branch becomes 'main', we can combine this - # workflow into build-yocto.yml - git checkout main - export DL_DIR=/srv/gh-runners/quic-yocto/downloads - export SSTATE_DIR=/srv/gh-runners/quic-yocto/sstate-cache - mkdir -p $DL_DIR - mkdir -p $SSTATE_DIR - mkdir build - cd build - kas build ../ci/${{ matrix.machine }}.yml + nightly: + uses: ./.github/workflows/build-yocto.yml