-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (71 loc) · 2.34 KB
/
build.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
78
79
name: Build (Zephyr)
on:
push:
branches:
- main
- v*-branch
pull_request:
branches:
- main
- v*-branch
schedule:
# Run at 00:42 on Thursday and Tuesday
- cron: '42 0 * * 4,2'
jobs:
build:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
container:
image: zephyrprojectrtos/ci:latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
# To prevent apt from prompting the user to enter locale info
DEBIAN_FRONTEND: noninteractive
# Update west modules minimally for CI
# Note the --group-filter argument is still not really useful because
# - it pulls in way too much by default
# - many modules do not belong to a group
# - the default is to include all modules
# - it is impossible to start a group filter with a dash e.g. -debug
# For reference: west update --group-filter +crypto,-debug,-fs,-hal,-tee,-tools
WEST_MODULES: cmsis mbedtls
steps:
- name: Update APT package database
working-directory: /
run: |
apt-get update
- name: Install Thrift
working-directory: /
run: |
apt install -y libboost-all-dev thrift-compiler libthrift-dev
- name: Initialize Project with West
run: |
pip3 install -U west
west init zephyrproject
cd zephyrproject
west update $WEST_MODULES
- name: Checkout Thrift Module
uses: actions/checkout@v2
with:
submodules: recursive
path: zephyrproject/modules/lib/thrift
- name: Add Thrift Submanifest
# Note: this is manually cloned above, but the submanifest
# must be there for west to automatically include the module.
# Users should use cat << EOF here as shown in README.md.
working-directory: zephyrproject/zephyr
shell: bash
run: |
cp ../modules/lib/thrift/scripts/99-thrift.yaml submanifests
- name: Build and Run Testsuite
working-directory: zephyrproject/zephyr
run: |
source zephyr-env.sh
twister --retry-failed 3 -i -G -T ../modules/lib/thrift/tests
- name: Build Samples
working-directory: zephyrproject/zephyr
run: |
source zephyr-env.sh
twister -i --build-only -G -T ../modules/lib/thrift/samples/