File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Coverity"
2+
3+ on :
4+ schedule :
5+ # Run workflow every Sunday
6+ - cron : " 00 0 * * 0"
7+ workflow_dispatch :
8+ push :
9+
10+ jobs :
11+ coverity :
12+ runs-on : ubuntu-24.04
13+ container : golioth/golioth-coverity-base:89df175
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ path : bluetooth-gateway
19+ - name : Init and update west
20+ run : |
21+ west init -l bluetooth-gateway --mf west-ncs.yml
22+ west update --narrow -o=--depth=1
23+ - name : Install pip packages
24+ run : |
25+ uv pip install \
26+ -r zephyr/scripts/requirements-base.txt
27+
28+ uv pip install \
29+ cryptography==41.0.7 \
30+ pyasn1 \
31+ pyyaml \
32+ cbor>=1.0.0 \
33+ imgtool>=1.9.0 \
34+ jinja2 \
35+ click
36+ - run : |
37+ /opt/toolchains/coverity/bin/cov-configure --comptype gcc \
38+ --compiler /opt/toolchains/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
39+ /opt/toolchains/coverity/bin/cov-build --dir cov-int \
40+ west build -p -b nrf9160dk/nrf9160/ns bluetooth-gateway/gateway \
41+ -- -DCONFIG_NET_LOG=n -DCONFIG_LOG=n
42+ tar czvf gateway.tgz cov-int
43+ curl --form token=${{ secrets.BLUETOOTH_GATEWAY_COVERITY_TOKEN }} \
44+ --form email=sam@golioth.io \
45+ --form file=@gateway.tgz \
46+ --form version="0" \
47+ --form description="Description" \
48+ https://scan.coverity.com/builds?project=golioth%2Fbluetooth-gateway
49+ - uses : actions/upload-artifact@v4
50+ with :
51+ name : coverity_output
52+ path : gateway.tgz
You can’t perform that action at this time.
0 commit comments