-
Notifications
You must be signed in to change notification settings - Fork 170
77 lines (72 loc) · 1.8 KB
/
continuous-integration.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2020 STMicroelectronics
name: libmetal Continuous Integration
on:
push:
branches: [ main ]
paths-ignore:
- docs/**
- cmake/**
- scripts/**
pull_request:
branches: [ main ]
paths-ignore:
- docs/**
- cmake/**
- scripts/**
jobs:
platform_builds:
name: check builds on different platforms
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build for Linux
id: build_linux
uses: ./.github/actions/build_ci
with:
target: linux
- name: build for generic arm
id: build_generic
uses: ./.github/actions/build_ci
with:
target: generic
- name: build for FreeRTOS
id: build_freertos
uses: ./.github/actions/build_ci
with:
target: freertos
# Break the zephyr builds into their own job as the common runner was
# running out of space when runs were together
# Also, as the longest running jobs, this allows them to run in ||
zephyr_build_known_good_version:
name: Zephyr build with a version that is known to work
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build for Zephyr (Known Good)
id: build_Zephyr
uses: ./.github/actions/build_ci
with:
target: zephyr
nr_tests:
name: nonreg tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: |
sudo apt-get update && sudo apt-get install libsysfs-dev
cmake . -Bbuild
- name: build
run: |
cd build
make
- name: execute test
run: |
cd build
make test
- name: test logs
if: failure()
run: |
cat build/Testing/Temporary/LastTest.log
exit 1