if: "contains(github.event.head_commit.message, '[coverity]')"
steps:
- - uses: actions/checkout@v1
- - name: submodules
+ - name: Checkout
+ uses: actions/checkout@v1
+
+ - name: Init submodules
run: git submodule update --init util ast
- - name: download coverity tool
- run: curl https://scan.coverity.com/download/cxx/linux64
- - name: make
+
+ - name: Download tool
+ run: |
+ wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "${{ token=secrets.COVERITY_TOKEN }}&project=fennecdjay/Gwion" -O cov-analysis-linux64.tar.gz
+ mkdir cov-analysis-linux64
+ tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
+
+ - name: Build
run: cov-build --dir cov-int make
+
+ - name: Submit
+ run: |
+ tar czvf gwion.tgz cov-int
+ curl \
+ --form project=dennecdjay/Gwion \
+ --form token=${{ secrets.COVERITY_TOKEN }} \
+ --form email=astor.jeremie@wanadoo.fr \
+ --form file=@gwion.tgz \
+ --form version=trunk \
+ --form description="`./ruby -v`" \
+ https://scan.coverity.com/builds?project=fennecdjay/Gwion