forked from siemens/mtda
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.54 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
# ---------------------------------------------------------------------------
# CI workflows for MTDA
# ---------------------------------------------------------------------------
#
# This software is a part of MTDA.
# Copyright (C) 2024 Siemens Digital Industries Software
#
# ---------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------
name: CI
on:
push:
branches:
- yocto-ci-test
tags:
- v*
pull_request:
types: [ labeled ]
jobs:
lint:
name: Check code for issues
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: tox
run: |
sudo apt install -y build-essential libsystemd-dev
pip3 install --user tox
tox -s
mtda-yocto-build:
name: mtda yocto package build for poky qemu arm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build image
run: |
export KAS_BUILD_DIR=${PWD}/build-yocto
./kas-container build --target mtda kas/yocto/mtda-qemu-yocto.yml
mtda-image-yocto-build:
name: Yocto image build for MTDA on poky qemu arm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build image
if: github.ref == 'refs/heads/master'
run: |
export KAS_BUILD_DIR=${PWD}/build-yocto
./kas-container build kas/yocto/mtda-qemu-yocto.yml