From e375e39103f2e1eec6ca51c319414a0604a178f6 Mon Sep 17 00:00:00 2001 From: Erwann Roussy Date: Tue, 30 May 2023 14:10:04 +0200 Subject: [PATCH] workflows/ci-yocto-weekly.yml: add file This file add a weekly ci on the main branch. It will ensure the main branch is always tested and will be used to display a badge on SEAPATH main page. Signed-off-by: Erwann Roussy --- .github/workflows/ci-yocto-weekly.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci-yocto-weekly.yml diff --git a/.github/workflows/ci-yocto-weekly.yml b/.github/workflows/ci-yocto-weekly.yml new file mode 100644 index 000000000..a5d2cd913 --- /dev/null +++ b/.github/workflows/ci-yocto-weekly.yml @@ -0,0 +1,43 @@ +# Copyright (C) 2023 Savoir-faire Linux, Inc. +# SPDX-License-Identifier: Apache-2.0 +# This file will execute the yocto-ci on the main branch every saturday. +# This ensure the main branch is always tested properly. +# A badge is derived from this workflow. + +name: CI Yocto + +env: + WORK_DIR: /tmp/seapath_ci_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.sha }} + +on: + schedule: + - cron: 0 22 * * SAT + +jobs: + CI: + runs-on: [self-hosted, runner-SFL] + steps: + + - name: Initialize sources + run: mkdir ${{ env.WORK_DIR }}; cd ${{ env.WORK_DIR }}; + git clone -q --depth 1 -b main https://github.com/seapath/ci ci; + echo "CI sources downloaded successfully"; + ci/launch-yocto.sh init; + + - name: Configure SEAPATH + id: conf + run: cd ${{ env.WORK_DIR }}; + ci/launch-yocto.sh conf; + + - name: Launch system tests + run: cd ${{ env.WORK_DIR }}; + ci/launch-yocto.sh system; + + - name: Upload test report + if: ${{ always() && steps.conf.conclusion == 'success' }} + run: cd ${{ env.WORK_DIR }}; + ci/launch-yocto.sh report; + + - name: Clean + if: always() + run: rm -rf $WORK_DIR;