2020-04-28 16:17:39 +02:00
|
|
|
name: coverity-scan
|
2020-04-28 17:31:11 +02:00
|
|
|
|
2020-04-28 16:17:39 +02:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # Daily at 10:00 UTC
|
|
|
|
|
2022-06-07 03:08:13 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-04-28 16:17:39 +02:00
|
|
|
jobs:
|
|
|
|
latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-08 14:47:05 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-04-28 16:17:39 +02:00
|
|
|
|
2020-07-13 17:56:57 +02:00
|
|
|
- run: sudo apt-get install gcc clang wget git curl pkg-config libfreetype6-dev libglib2.0-dev libicu-dev libgraphite2-dev
|
2020-04-28 16:17:39 +02:00
|
|
|
|
|
|
|
- name: Download Coverity
|
|
|
|
run: |
|
2022-04-22 01:01:06 +02:00
|
|
|
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=HarfBuzz" -O cov-analysis-linux64.tar.gz
|
2020-04-28 16:17:39 +02:00
|
|
|
mkdir cov-analysis-linux64
|
|
|
|
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
|
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
2020-06-29 10:47:37 +02:00
|
|
|
|
2020-04-28 17:31:11 +02:00
|
|
|
# ideally we should've used meson and ninja here but it complains about coverage or something
|
2020-06-29 10:47:37 +02:00
|
|
|
- run: cov-analysis-linux64/bin/cov-build --dir cov-int clang src/hb-*.cc -DHAVE_FREETYPE -DHAVE_GRAPHITE2 -DHAVE_GLIB -DHAVE_ICU `pkg-config --cflags freetype2 graphite2 glib-2.0 icu-uc` -DHAVE_ROUNDF -DHAVE_SYS_MMAN_H -DHAVE_UNISTD_H -DHAVE_GETPAGESIZE -DHB_EXPERIMENTAL_API -c
|
2020-04-28 16:17:39 +02:00
|
|
|
|
|
|
|
- run: tar czvf harfbuzz.tgz cov-int
|
2020-06-29 10:47:37 +02:00
|
|
|
|
2020-04-28 16:17:39 +02:00
|
|
|
- name: submit to coverity
|
|
|
|
run: |
|
|
|
|
curl \
|
2022-04-22 01:01:06 +02:00
|
|
|
--form project=HarfBuzz \
|
2020-04-28 16:17:39 +02:00
|
|
|
--form token=$TOKEN \
|
|
|
|
--form email=harfbuzz-bots-chatter@googlegroups.com \
|
|
|
|
--form file=@harfbuzz.tgz \
|
|
|
|
--form version=trunk \
|
|
|
|
--form description="`git rev-parse --short HEAD`" \
|
2022-04-22 01:01:06 +02:00
|
|
|
https://scan.coverity.com/builds?project=HarfBuzz
|
2020-04-28 16:17:39 +02:00
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|