Skip to content

Commit 5cabd3b

Browse files
authored
Merge pull request #7480 from tautschnig/cleanup/caching
Cleanup GitHub actions
2 parents 12d5324 + 2964edf commit 5cabd3b

File tree

7 files changed

+61
-58
lines changed

7 files changed

+61
-58
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- '**'
77

88
jobs:
9+
# This job takes approximately 18 minutes
910
CompileLinux:
1011
runs-on: ubuntu-20.04
1112
steps:
@@ -19,18 +20,18 @@ jobs:
1920
DEBIAN_FRONTEND: noninteractive
2021
run: |
2122
sudo apt-get update
22-
sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
23+
sudo apt-get install --no-install-recommends -y clang-10 clang++-10 flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
2324
sudo apt-get install --no-install-recommends -y libssl-dev libelf-dev libudev-dev libpci-dev libiberty-dev autoconf
2425
sudo apt-get install --no-install-recommends -y gawk jq
2526
2627
- name: Prepare ccache
2728
uses: actions/cache@v3
2829
with:
2930
path: .ccache
30-
key: ${{ runner.os }}-20.04-make-${{ github.ref }}-${{ github.sha }}-KERNEL
31+
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-KERNEL
3132
restore-keys: |
32-
${{ runner.os }}-20.04-make-${{ github.ref }}
33-
${{ runner.os }}-20.04-make
33+
${{ runner.os }}-20.04-make-clang-${{ github.ref }}
34+
${{ runner.os }}-20.04-make-clang
3435
- name: ccache environment
3536
run: |
3637
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
@@ -40,7 +41,7 @@ jobs:
4041
- name: Build CBMC tools
4142
run: |
4243
make -C src minisat2-download
43-
make -C src CXX='ccache /usr/bin/g++' cbmc.dir goto-cc.dir goto-diff.dir -j2
44+
make -C src CXX='ccache /usr/bin/clang++' cbmc.dir goto-cc.dir goto-diff.dir -j2
4445
- name: Print ccache stats
4546
run: ccache -s
4647

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ develop ]
66

77
jobs:
8+
# This job takes approximately 33 minutes
89
CompileXen:
910
runs-on: ubuntu-20.04
1011
steps:
@@ -20,16 +21,16 @@ jobs:
2021
sudo apt-get update
2122
sudo apt-get install --no-install-recommends -y build-essential git flex bison software-properties-common curl python
2223
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
23-
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev time ccache
24+
sudo apt-get install --no-install-recommends -y libgtk2.0-dev libyajl-dev time ccache clang-10 clang++-10
2425
2526
- name: Prepare ccache
2627
uses: actions/cache@v3
2728
with:
2829
path: .ccache
29-
key: ${{ runner.os }}-20.04-make-${{ github.ref }}-${{ github.sha }}-XEN
30+
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-XEN
3031
restore-keys: |
31-
${{ runner.os }}-20.04-make-${{ github.ref }}
32-
${{ runner.os }}-20.04-make
32+
${{ runner.os }}-20.04-make-clang-${{ github.ref }}
33+
${{ runner.os }}-20.04-make-clang
3334
- name: ccache environment
3435
run: |
3536
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
@@ -39,7 +40,7 @@ jobs:
3940
- name: Build CBMC tools
4041
run: |
4142
make -C src minisat2-download
42-
make -C src CXX='ccache /usr/bin/g++' cbmc.dir goto-cc.dir goto-diff.dir -j2
43+
make -C src CXX='ccache /usr/bin/clang++' cbmc.dir goto-cc.dir goto-diff.dir -j2
4344
- name: Print ccache stats
4445
run: ccache -s
4546

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [ develop ]
88

99
jobs:
10+
# This job takes approximately 82 minutes
1011
analyze:
1112
name: Analyze
1213
runs-on: ubuntu-latest

.github/workflows/csmith.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ develop ]
66

77
jobs:
8+
# This job takes approximately 18 minutes
89
run-10-random-tests:
910
runs-on: ubuntu-20.04
1011
steps:
@@ -17,17 +18,17 @@ jobs:
1718
# user input
1819
DEBIAN_FRONTEND: noninteractive
1920
run: |
20-
sudo apt-get install --no-install-recommends -y build-essential flex bison maven ccache
21+
sudo apt-get install --no-install-recommends -y build-essential flex bison maven ccache clang-10 clang++-10
2122
sudo apt-get install --no-install-recommends -y csmith libcsmith-dev
2223
make -C src minisat2-download
2324
- name: Prepare ccache
2425
uses: actions/cache@v3
2526
with:
2627
path: .ccache
27-
key: ${{ runner.os }}-20.04-make-${{ github.ref }}-${{ github.sha }}-CSMITH
28+
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-CSMITH
2829
restore-keys: |
29-
${{ runner.os }}-20.04-make-${{ github.ref }}
30-
${{ runner.os }}-20.04-make
30+
${{ runner.os }}-20.04-make-clang-${{ github.ref }}
31+
${{ runner.os }}-20.04-make-clang
3132
- name: ccache environment
3233
run: |
3334
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
@@ -36,7 +37,7 @@ jobs:
3637
run: ccache -z --max-size=500M
3738
- name: Build with make
3839
run: |
39-
make -C src CXX='ccache /usr/bin/g++' cbmc.dir goto-cc.dir goto-instrument.dir -j2
40+
make -C src CXX='ccache /usr/bin/clang++' cbmc.dir goto-cc.dir goto-instrument.dir -j2
4041
- name: Print ccache stats
4142
run: ccache -s
4243
- name: Run 10 randomly-generated CSmith tests

.github/workflows/doxygen-check.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches: [ develop ]
55

66
jobs:
7+
# This job takes approximately 2 minutes
78
check-doxygen:
89
runs-on: ubuntu-20.04
910
steps:

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish CBMC documentation
22
on: [push, pull_request]
33

44
jobs:
5+
# This job takes approximately 3 minutes
56
publish:
67
runs-on: ubuntu-latest
78
steps:

0 commit comments

Comments
 (0)