Skip to content

Commit

Permalink
Explicitly install clang-9 in coverity workflow
Browse files Browse the repository at this point in the history
GitHub only has the last 3 clang versions installed by default in
the virtual environment and no longer installed clang-9 when they
added clang-12. Since we need clang-9 to build postgres with
llvm support we need to explicitly install the required package.

actions/runner-images#3381
  • Loading branch information
svenklemm committed May 23, 2021
1 parent 58b1eb8 commit 6794cc3
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/coverity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
schedule:
# run at 22:00 on every saturday
- cron: '0 22 * * SAT'
pull_request:
push:
branches:
- coverity_scan
Expand All @@ -21,7 +22,7 @@ jobs:
MAKE_JOBS: 4
steps:
- name: Install Dependencies
run: sudo apt install flex bison
run: sudo apt install flex bison clang-9 llvm-9 llvm-9-dev llvm-9-tools

# this workflow depends on the cached postgres build from the main regression
# workflow since that workflow runs daily there should always be a cache hit
Expand Down Expand Up @@ -58,13 +59,13 @@ jobs:
./bootstrap -DCMAKE_BUILD_TYPE=Release -DPG_SOURCE_DIR=~/$PG_SRC_DIR -DPG_PATH=~/$PG_INSTALL_DIR
cov-build --dir cov-int make -C build
- name: Upload report
env:
FORM_EMAIL: --form email=ci@timescale.com
FORM_FILE: --form file=@timescaledb.tgz
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=ci@timescale.com
# FORM_FILE: --form file=@timescaledb.tgz
# 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 6794cc3

Please sign in to comment.