Skip to content

xen-cbmc: fix ci script #5508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.