.github/workflows/coverity-scan.yml: simplify

This commit is contained in:
Duncan Overbruck 2020-04-18 15:17:10 +02:00
parent ef4937ecb7
commit 2bc25a3369
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -12,9 +12,6 @@ jobs:
- name: Setup container - name: Setup container
run: | run: |
docker pull voidlinux/voidlinux
docker run -v "$PWD":/tmp/build-dir -w "/tmp/build-dir" voidlinux/voidlinux \
/bin/sh -c "xbps-install -Syu xbps && xbps-install -yu && xbps-install -y tar gcc make pkgconf kyua zlib-devel libarchive-devel atf-devel"
- name: Checkout void-linux/xbps - name: Checkout void-linux/xbps
run: | run: |
@ -28,15 +25,14 @@ jobs:
env: env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Configure - name: Configure and build in voidlinux/voilinux container
run: | run: |
docker pull voidlinux/voidlinux
docker run -v "$PWD":/tmp/build-dir -w "/tmp/build-dir" voidlinux/voidlinux \ docker run -v "$PWD":/tmp/build-dir -w "/tmp/build-dir" voidlinux/voidlinux \
/bin/sh -c "CC=gcc ./configure --enable-tests" /bin/sh -c "xbps-install -Syu xbps && xbps-install -yu &&
xbps-install -y gcc make pkgconf kyua zlib-devel libarchive-devel atf-devel &&
- name: Build with cov-build CC=gcc ./configure &&
run: | PATH=/tmp/build-dir/cov-analysis-linux64/bin:\$PATH cov-build --dir cov-int make -j\$(nproc)"
docker run -v "$PWD":/tmp/build-dir -w "/tmp/build-dir" voidlinux/voidlinux \
/bin/sh -c "PATH=\$(pwd)/cov-analysis-linux64/bin:\$PATH cov-build --dir cov-int make -j$(nproc)"
- name: Submit the result to Coverity Scan - name: Submit the result to Coverity Scan
run: | run: |