-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.25 KB
/
c.check.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
on:
push:
pull_request:
branches:
- master
jobs:
code-analysis:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad
with:
packages: clang-format
version: 1.0
- name: clang-format
run: find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format -i -style=file {} \; && git diff --exit-code
raspi-source-dist:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- name: run-download
run: |
cd ./examples/raspberry-pi
ls
make download
- uses: actions/upload-artifact@v4
with:
name: raspi-source-dist
path: ./examples/raspberry-pi/*
if-no-files-found: error
build-examples:
runs-on: "ubuntu-22.04"
needs: raspi-source-dist
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: raspi-source-dist
path: ./examples/raspberry-pi/build-test
- name: test-build
run: |
cd ./examples/raspberry-pi/build-test
ls
make algorithm_example_usage
make low_power_example