mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
ci-ifcwrap-standalone: ccache swig build
This commit is contained in:
@@ -70,21 +70,23 @@ jobs:
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
tk-dev
|
tk-dev
|
||||||
|
|
||||||
|
- name: ccache
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
|
with:
|
||||||
|
key: ci-ifcwrap-standalone-ubuntu-22.04-${{ runner.arch }}
|
||||||
|
|
||||||
- name: Build SWIG
|
- name: Build SWIG
|
||||||
# IfcOpenShell requires SWIG 4.1+, ubuntu-22.04 ships 4.0.2.
|
# IfcOpenShell requires SWIG 4.1+, ubuntu-22.04 ships 4.0.2.
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get remove --purge -y swig swig4.0
|
sudo apt-get remove --purge -y swig swig4.0
|
||||||
git clone https://github.com/swig/swig --branch v4.2.1 --depth 1
|
git clone https://github.com/swig/swig --branch v4.2.1 --depth 1
|
||||||
cmake -S swig -B swig/build -DCMAKE_BUILD_TYPE=Release
|
cmake -S swig -B swig/build -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||||
cmake --build swig/build -j "$(nproc)"
|
cmake --build swig/build -j "$(nproc)"
|
||||||
sudo cmake --install swig/build
|
sudo cmake --install swig/build
|
||||||
swig -version
|
swig -version
|
||||||
|
|
||||||
- name: ccache
|
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
|
||||||
with:
|
|
||||||
key: ci-ifcwrap-standalone-ubuntu-22.04-${{ runner.arch }}
|
|
||||||
|
|
||||||
- name: Configure minimal IfcOpenShell
|
- name: Configure minimal IfcOpenShell
|
||||||
run: |
|
run: |
|
||||||
cmake -S cmake -B build-ifcopenshell \
|
cmake -S cmake -B build-ifcopenshell \
|
||||||
|
|||||||
Reference in New Issue
Block a user