Files
xen/.github/workflows/coverity.yml
T
Andrew Cooper 606bb708e1 CI: Fix the github actions Coverity run
The Install step is failing with:

  Package python-dev is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  E: Package 'python-dev' has no installation candidate
  is only available from another source
  However the following packages replace it:
    python2-dev python2 python-dev-is-python3

which is a side effect of ubuntu-latest having changed from 20.04 to 22.04.

Drop python-dev as python3-dev is already present, and used a fixed runs-on to
avoid such problems in the future.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
2023-06-08 11:48:53 +01:00

43 lines
1.2 KiB
YAML

name: Coverity Scan
# We only want to test official release code, not every pull request.
on:
workflow_dispatch:
schedule:
- cron: '18 9 * * WED,SUN' # Bi-weekly at 9:18 UTC
jobs:
coverity:
runs-on: ubuntu-22.04
steps:
- name: Install build dependencies
run: |
sudo apt-get install -y wget git gawk \
libbz2-dev build-essential \
zlib1g-dev libncurses5-dev iasl \
libbz2-dev e2fslibs-dev uuid-dev ocaml \
ocaml-findlib libyajl-dev \
autoconf libtool liblzma-dev \
python3-dev golang libsystemd-dev
- uses: actions/checkout@v2
with:
ref: staging
- name: Configure Xen
run: |
./configure --with-system-qemu=/bin/true \
--with-system-seabios=/bin/true \
--with-system-ovmf=/bin/true
- name: Pre build stuff
run: |
make -j`nproc` mini-os-dir
- uses: vapier/coverity-scan-action@v1
with:
command: make -j`nproc` build-xen build-tools && make -j`nproc` -C extras/mini-os/
project: XenProject
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}