Skip to content

Commit caf309e

Browse files
authored
Merge pull request #5699 from tautschnig/xen-ccache
Xen-build GitHub action: use ccache and Ubuntu 20.04
2 parents 28b94d9 + a16b8e7 commit caf309e

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/build-and-test-Xen.yaml

+19-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
CompileXen:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
1010
steps:
1111
- uses: actions/checkout@v2
1212
with:
@@ -19,12 +19,28 @@ jobs:
1919
run: |
2020
sudo apt-get install --no-install-recommends -y coreutils build-essential gcc git make flex bison software-properties-common libwww-perl python
2121
sudo apt-get install --no-install-recommends -y bin86 gdb bcc liblzma-dev python-dev gettext iasl uuid-dev libncurses5-dev libncursesw5-dev pkg-config
22-
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev sudo time
22+
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev sudo time ccache
2323
24+
- name: Prepare ccache
25+
uses: actions/cache@v2
26+
with:
27+
path: .ccache
28+
key: ${{ runner.os }}-20.04-make-${{ github.ref }}-${{ github.sha }}-XEN
29+
restore-keys: |
30+
${{ runner.os }}-20.04-make-${{ github.ref }}
31+
${{ runner.os }}-20.04-make
32+
- name: ccache environment
33+
run: |
34+
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
35+
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
36+
- name: Zero ccache stats and limit in size
37+
run: ccache -z --max-size=500M
2438
- name: Build CBMC tools
2539
run: |
2640
make -C src minisat2-download
27-
make -C src cbmc.dir goto-cc.dir goto-diff.dir -j2
41+
make -C src CXX='ccache /usr/bin/g++' cbmc.dir goto-cc.dir goto-diff.dir -j2
42+
- name: Print ccache stats
43+
run: ccache -s
2844

2945
- name: Get one-line-scan
3046
run: git clone -b path-addition https://github.com/awslabs/one-line-scan.git

0 commit comments

Comments
 (0)