From fe386be01e5a687e00e235548b4f8533c6b127d9 Mon Sep 17 00:00:00 2001 From: Erwann Roussy Date: Mon, 29 May 2023 13:33:50 +0200 Subject: [PATCH] workflows/ci-yocto.yml: add workflow This workflow configure the ci for the yocto version of SEAPATH. It is basically the same as the debian one, but doesn't feature the latency tests for now. Signed-off-by: Erwann Roussy --- .github/workflows/ci-yocto.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci-yocto.yml diff --git a/.github/workflows/ci-yocto.yml b/.github/workflows/ci-yocto.yml new file mode 100644 index 000000000..901f67797 --- /dev/null +++ b/.github/workflows/ci-yocto.yml @@ -0,0 +1,42 @@ +# Copyright (C) 2023 Savoir-faire Linux, Inc. +# SPDX-License-Identifier: Apache-2.0 + +name: CI Yocto + +env: + WORK_DIR: /tmp/seapath_ci_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.sha }} + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: [main] + + +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;