ci: use ghcr void containers in coverity-scan

This commit is contained in:
Duncan Overbruck 2022-08-30 13:39:25 +02:00
parent 4ee3960377
commit 46522edb2b
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -8,16 +8,16 @@ jobs:
latest:
if: github.repository == 'void-linux/xbps'
runs-on: ubuntu-latest
container: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: Setup container
- name: Updating and installing packages
run: |
- name: Checkout void-linux/xbps
run: |
git clone --depth=1 https://github.com/void-linux/xbps .
xbps-install -Suy xbps; xbps-install -Suy
xbps-install -Sy gcc make pkgconf kyua zlib-devel libarchive-devel atf-devel wget
- name: Download Coverity Build Tool
run: |
@ -25,12 +25,9 @@ jobs:
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
- name: Configure and build in voidlinux/voilinux container
- name: Configure and build
run: |
docker pull voidlinux/voidlinux
docker run -v "$PWD":/tmp/build-dir -w "/tmp/build-dir" voidlinux/voidlinux \
/bin/sh -c "xbps-install -yu xbps && xbps-install -Syu &&
xbps-install -y gcc make pkgconf kyua zlib-devel libarchive-devel atf-devel &&
CC=gcc ./configure --enable-tests &&
PATH=/tmp/build-dir/cov-analysis-linux64/bin:\$PATH cov-build --dir cov-int make -j\$(nproc)"