Skip to content

Commit 6bd2222

Browse files
committed
make c-workflow all local
1 parent b646cc4 commit 6bd2222

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

.github/workflows/c.check.yml

+36-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,39 @@ on:
55
- master
66

77
jobs:
8-
c-check:
9-
uses: sensirion/.github/.github/workflows/driver.c.check.yml@main
10-
with:
11-
examples: '["examples/raspberry-pi"]'
8+
code-analysis:
9+
runs-on: "ubuntu-22.04"
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: awalsh128/cache-apt-pkgs-action@v1
13+
with:
14+
packages: cppcheck clang-format
15+
version: 1.0
16+
- name: clang-format syntax-check
17+
run: find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format -i -style=file {} \; && git diff --exit-code
18+
19+
raspi-source-dist:
20+
runs-on: "ubuntu-22.04"
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: runbuild
24+
run: cd examples/raspberry-pi && make
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: raspi-source-dist
28+
path: examples/raspberry-pi/*
29+
if-no-files-found: error
30+
build-examples:
31+
runs-on: "ubuntu-22.04"
32+
needs: raspi-source-dist
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: actions/download-artifact@v4
36+
with:
37+
name: raspi-source-dist
38+
path: examples/raspberry-pi/build-test
39+
- name: runbuild
40+
run: |
41+
cd examples/raspberry-pi/build-test
42+
make algorithm_example_usage
43+
make low_power_example

.github/workflows/pyhton.build_deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
- name: Build documentation
137137
run: cd ./docs && make html
138138
- name: Upload html
139-
uses: actions/upload-pages-artifact@v1
139+
uses: actions/upload-pages-artifact@v4
140140
with:
141141
path: python-wrapper/docs/_build/html
142142
deploy_pages:

0 commit comments

Comments
 (0)