Skip to content

Commit

Permalink
ci: Add a nightly build
Browse files Browse the repository at this point in the history
GitHub actions do scheduled runs like this on the repositories default
branch. Main is not yet the default brach, so we must duplicate the
build-yocto.yml workflow and have it do `git checkout main` to build.

Signed-off-by: Andy Doan <[email protected]>
  • Loading branch information
doanac committed Sep 26, 2024
1 parent 73bd8d0 commit cc1cde2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Nightly Build

on:
schedule:
- cron: "1 23 * * *" # daily job - pick a random "minute" - top of hour can be busy in github

jobs:
compile:
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

0 comments on commit cc1cde2

Please sign in to comment.