mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
* Use workflow_dispatch to allow manual creation of the job. * Use parallel builds; the workers have two vCPUs. Also, use the build-* targets rather than the ones which expand to dist-*. * Shrink the dependency list further. build-essential covers make and gcc, while bridge-utils and iproute2 are runtime dependencies not build dependencies. Alter bzip2 to libbz2-dev. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
43 lines
1.2 KiB
YAML
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-latest
|
|
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 python-dev 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 }}
|