File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 path : src
1515 - name : Install dependencies
1616 run : brew install ninja
17+ - name : Configure
18+ run : |
19+ cmake -B build -S src -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_HIDTEST=ON -DCMAKE_C_COMPILER=clang
20+ - name : Get and configure Coverity
21+ run : |
22+ curl https://scan.coverity.com/download/cxx/Darwin --output coverity.dmg --data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=hidapi"
23+ hdiutil attach coverity.dmg -mountroot coverity
24+ export COV_DIR_NAME=$(ls -1 --color=never coverity)
25+ mkdir cov-root
26+ cp ./coverity/${COV_DIR_NAME}/${COV_DIR_NAME}.sh cov-root/
27+ cd cov-root/
28+ ./${COV_DIR_NAME}.sh
29+ ./bin/cov-configure --clang
30+ echo "$(pwd)/bin" >> $GITHUB_PATH
31+ - name : Build with Coverity
32+ working-directory : build
33+ run : cov-build --dir cov-int ninja
34+ - name : Backup Coverity logs
35+ uses : actions/upload-artifact@v3
36+ with :
37+ name : coverity-logs-macos
38+ path : build/cov-int
39+ retention-days : 7
40+ - name : Submit results to Coverity Scan
41+ working-directory : build
42+ run : |
43+ tar -czf cov-int.tar.gz cov-int
44+ curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
45+ --form email=${{ secrets.COVERITY_SCAN_EMAIL }} \
46+ --form file=@cov-int.tar.gz \
47+ --form version="$GITHUB_SHA" \
48+ --form description="Automatic macOS build" \
49+ https://scan.coverity.com/builds?project=hidapi
You can’t perform that action at this time.
0 commit comments