.github/workflows/coverity-scan.yml: simplify
This commit is contained in:
parent
ef4937ecb7
commit
2bc25a3369
16
.github/workflows/coverity-scan.yml
vendored
16
.github/workflows/coverity-scan.yml
vendored
@ -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: |
|
||||||
|
Loading…
Reference in New Issue
Block a user