ci: use ghcr void containers in coverity-scan
This commit is contained in:
parent
4ee3960377
commit
46522edb2b
17
.github/workflows/coverity-scan.yml
vendored
17
.github/workflows/coverity-scan.yml
vendored
@ -8,16 +8,16 @@ jobs:
|
|||||||
latest:
|
latest:
|
||||||
if: github.repository == 'void-linux/xbps'
|
if: github.repository == 'void-linux/xbps'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Setup container
|
- name: Updating and installing packages
|
||||||
run: |
|
run: |
|
||||||
|
xbps-install -Suy xbps; xbps-install -Suy
|
||||||
- name: Checkout void-linux/xbps
|
xbps-install -Sy gcc make pkgconf kyua zlib-devel libarchive-devel atf-devel wget
|
||||||
run: |
|
|
||||||
git clone --depth=1 https://github.com/void-linux/xbps .
|
|
||||||
|
|
||||||
- name: Download Coverity Build Tool
|
- name: Download Coverity Build Tool
|
||||||
run: |
|
run: |
|
||||||
@ -25,12 +25,9 @@ jobs:
|
|||||||
mkdir cov-analysis-linux64
|
mkdir cov-analysis-linux64
|
||||||
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C 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: |
|
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 &&
|
CC=gcc ./configure --enable-tests &&
|
||||||
PATH=/tmp/build-dir/cov-analysis-linux64/bin:\$PATH cov-build --dir cov-int make -j\$(nproc)"
|
PATH=/tmp/build-dir/cov-analysis-linux64/bin:\$PATH cov-build --dir cov-int make -j\$(nproc)"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user