-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (32 loc) · 1.1 KB
/
ci-yocto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 --recurse-submodules -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;