forked from libcsp/libcsp
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.66 KB
/
build-test-zephyr.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
name: Zephyr Build and Test
on:
push:
pull_request:
schedule:
- cron: '0 10 * * 0' # Run it every Sunday 10am UTC
jobs:
build-zephyr:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
board:
- scobc_module1
- qemu_cortex_m3
- mps2_an385
python-version:
- '3.10'
- '3.11'
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python version
run: |
python3 --version
- name: Checkout
uses: actions/checkout@v4
with:
path: libcsp-zephyr
repository: yashi/libcsp-zephyr
- name: Install yq
run: |
sudo apt-get install tree yq
- name: Update libcsp revision (Pull Req)
if: github.event_name == 'pull_request'
working-directory: libcsp-zephyr
run: |
yq -iy '(.manifest.projects[] | select(.name == "libcsp") | .revision) = "${{ github.event.pull_request.head.sha }}"' west.yml
git diff -w
- name: Update libcsp revision (Push)
if: github.event_name == 'push'
working-directory: libcsp-zephyr
run: |
yq -iy '(.manifest.projects[] | select(.name == "libcsp") | .revision) = "${{ github.sha }}"' west.yml
git diff -w
- name: Setup Zephyr
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: libcsp-zephyr
toolchains: arm-zephyr-eabi
- name: Build
run: |
west build -b ${{ matrix.board }} libcsp-zephyr