Skip to content

Commit

Permalink
Merge pull request #5508 from nmanthey/cbmc-xen-ci
Browse files Browse the repository at this point in the history
Fix for Xen CI script
  • Loading branch information
NlightNFotis authored Sep 30, 2020
2 parents 3d77d8f + 20680de commit 2bc93c2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-and-test-Xen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Xen with CPROVER tools

on:
pull_request:
branches: [ develop ]

jobs:
CompileXen:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Packages
env:
# This is needed in addition to -yq to prevent apt-get from asking for
# user input
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y coreutils build-essential gcc git make flex bison software-properties-common libwww-perl python
sudo apt-get install -y bin86 gdb bcc liblzma-dev python-dev gettext iasl uuid-dev libncurses5-dev libncursesw5-dev pkg-config
sudo apt-get install -y libgtk2.0-dev libyajl-dev sudo time
- name: Build CBMC tools
run: |
make -C src minisat2-download
make -C src cbmc.dir goto-cc.dir goto-diff.dir
- name: Get one-line-scan
run: git clone -b path-addition https://github.com/awslabs/one-line-scan.git

- name: Get Xen 4.13
run: git clone git://xenbits.xen.org/xen.git xen_4_13 && cd xen_4_13 && git reset --hard RELEASE-4.13.0 && pwd

- name: Prepare compile Xen with CBMC via one-line-scan
run: |
ln -s goto-cc src/goto-cc/goto-ld
ln -s goto-cc src/goto-cc/goto-as
ln -s goto-cc src/goto-cc/goto-g++
- name: Compile Xen with CBMC via one-line-scan, and check for goto-cc section
run: one-line-scan/one-line-scan --add-to-path $(pwd)/src/cbmc --add-to-path $(pwd)/src/goto-diff --add-to-path $(pwd)/src/goto-cc --no-analysis --trunc-existing --extra-cflags -Wno-error -o CPROVER -j 3 -- make -C xen_4_13 xen -j $(nproc) -k || true

- name: Check for goto-cc section in xen-syms binary
run: objdump -h xen_4_13/xen/xen-syms | grep "goto-cc"
26 changes: 0 additions & 26 deletions .github/workflows/build-and-test-Xen.yml

This file was deleted.

0 comments on commit 2bc93c2

Please sign in to comment.