-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build failure in coverity 15 workflow
- Loading branch information
Showing
1 changed file
with
23 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Coverity | |
schedule: | ||
# run at 22:00 on every saturday | ||
- cron: '0 22 * * SAT' | ||
pull_request: | ||
push: | ||
branches: | ||
- coverity_scan | ||
|
@@ -15,7 +16,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
# run only on the 3 latest PG versions as we have rate limit on coverity | ||
pg: [13, 14, 15] | ||
# pg: [13, 14, 15] | ||
pg: [15] | ||
os: [ubuntu-20.04] | ||
steps: | ||
- name: Install Dependencies | ||
|
@@ -29,6 +31,10 @@ jobs: | |
- name: Checkout TimescaleDB | ||
uses: actions/checkout@v3 | ||
|
||
- name: Debug | ||
run: | | ||
pg_config | ||
- name: Coverity tools | ||
run: | | ||
wget https://scan.coverity.com/download/linux64 \ | ||
|
@@ -37,20 +43,20 @@ jobs: | |
tar xf coverity_tool.tgz | ||
mv cov-analysis-linux64-* coverity | ||
- name: Build TimescaleDB | ||
run: | | ||
PATH="$GITHUB_WORKSPACE/coverity/bin:$PATH" | ||
./bootstrap -DCMAKE_BUILD_TYPE=Release | ||
cov-build --dir cov-int make -C build | ||
# - name: Build TimescaleDB | ||
# run: | | ||
# PATH="$GITHUB_WORKSPACE/coverity/bin:$PATH" | ||
# ./bootstrap -DCMAKE_BUILD_TYPE=Release | ||
# cov-build --dir cov-int make -C build | ||
|
||
- name: Upload report | ||
env: | ||
FORM_EMAIL: --form [email protected] | ||
FORM_FILE: --form [email protected] | ||
FORM_DESC: --form description="CI" | ||
FORM_TOKEN: --form token="${{ secrets.COVERITY_TOKEN }}" | ||
COVERITY_URL: https://scan.coverity.com/builds?project=timescale%2Ftimescaledb | ||
run: | | ||
tar czf timescaledb.tgz cov-int | ||
curl $FORM_TOKEN $FORM_EMAIL $FORM_DESC $FORM_FILE \ | ||
--form version="$(grep '^version' version.config | cut -b11-)-${{ matrix.pg }}" $COVERITY_URL | ||
# - name: Upload report | ||
# env: | ||
# FORM_EMAIL: --form [email protected] | ||
# FORM_FILE: --form [email protected] | ||
# FORM_DESC: --form description="CI" | ||
# FORM_TOKEN: --form token="${{ secrets.COVERITY_TOKEN }}" | ||
# COVERITY_URL: https://scan.coverity.com/builds?project=timescale%2Ftimescaledb | ||
# run: | | ||
# tar czf timescaledb.tgz cov-int | ||
# curl $FORM_TOKEN $FORM_EMAIL $FORM_DESC $FORM_FILE \ | ||
# --form version="$(grep '^version' version.config | cut -b11-)-${{ matrix.pg }}" $COVERITY_URL |