Use C99 like the Linux kernel #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Synopsys | |
on: | |
push: | |
branches: [coverity_scan] | |
jobs: | |
coverity-scan: | |
name: Coverity Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Download the Coverity Scan Build Tool | |
run: | | |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=adrienverge%2Fopenfortivpn" -O cov-analysis-linux64.tar.gz | |
mkdir cov-analysis-linux64 | |
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
- name: Build | |
run: | | |
./autogen.sh | |
./configure --prefix=/usr --sysconfdir=/etc | |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | |
cov-build --dir cov-int make | |
- name: Upload the Project Build | |
run: | | |
tar caf openfortivpn.xz cov-int | |
curl \ | |
--form token=$TOKEN \ | |
--form [email protected] \ | |
--form [email protected] \ | |
--form version=coverity_scan \ | |
--form description="Client for PPP+TLS VPN tunnel services" \ | |
https://scan.coverity.com/builds?project=adrienverge%2Fopenfortivpn | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |