Skip to content

Commit 184a189

Browse files
plaesaothms
authored andcommitted
actions: ci: Enable ccache
Reduces build time with full cache from 20 to ~3 minutes.
1 parent 37f5499 commit 184a189

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@ jobs:
2222
- uses: actions/checkout@v2
2323

2424
-
25-
name: Update ubuntu
25+
name: Install dependencies
2626
run: |
2727
sudo apt update
2828
sudo apt-get install git cmake gcc g++ libboost1.67-all-dev python3-all-dev swig libpcre3-dev libxml2-dev
2929
sudo apt-get install liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev
30+
31+
-
32+
name: ccache
33+
uses: hendrikmuhs/ccache-action@v1
34+
3035
-
3136
name: Build ifcopenshell
3237
run: |
3338
mkdir build && cd build
3439
cmake \
40+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
41+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
3542
-DCMAKE_INSTALL_PREFIX=$PWD/install/ \
3643
-DCMAKE_BUILD_TYPE=Release \
3744
-DCMAKE_PREFIX_PATH=/usr \

0 commit comments

Comments
 (0)