Skip to content

Commit

Permalink
ci: nightly-build: use the build-yocto
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
quaresmajose authored and ricardosalveti committed Nov 4, 2024
1 parent 80f4c71 commit 46f94bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-yocto.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build Yocto

on:
workflow_call:
pull_request:
push:
branches:
Expand Down
30 changes: 2 additions & 28 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 46f94bf

Please sign in to comment.