Skip to content

Commit

Permalink
Fix build failure in coverity 15 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Sep 17, 2023
1 parent 646cecd commit 739e733
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/coverity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Coverity
schedule:
# run at 22:00 on every saturday
- cron: '0 22 * * SAT'
pull_request:
push:
branches:
- coverity_scan
Expand All @@ -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
Expand All @@ -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 \
Expand All @@ -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

0 comments on commit 739e733

Please sign in to comment.