Skip to content

Commit c7b75d2

Browse files
committed
ci.yml - add packages to use occt cmake config
1 parent 57197dd commit c7b75d2

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
- name: Install C++ dependencies
5656
run: |
5757
sudo apt update
58+
# `occt-misc` is only needed for 22.04, since it has cmake configs.
59+
# In 24.04+, the needed files were moved `libocct-foundation-dev` and `occt-misc` can be removed.
60+
# Other libs in `OCCT_CMAKE_DEPS` are needed only for cmake config to work properly, they're not used directly.
61+
OCCT_CMAKE_DEPS="occt-misc libocct-draw-dev tcl-dev tk-dev libxi-dev"
62+
5863
sudo apt-get install --no-install-recommends \
5964
git cmake gcc g++ \
6065
libboost-date-time-dev \
@@ -67,6 +72,7 @@ jobs:
6772
libpcre3-dev libxml2-dev \
6873
libtbb-dev nlohmann-json3-dev \
6974
libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev libocct-ocaf-dev libocct-visualization-dev libocct-data-exchange-dev \
75+
${OCCT_CMAKE_DEPS} \
7076
libhdf5-dev libcgal-dev libeigen3-dev
7177
7278
- name: ccache
@@ -209,8 +215,8 @@ jobs:
209215
cmake .. -DCMAKE_BUILD_TYPE=Release
210216
cmake --build .
211217
./IfcParseExamples "../IfcParseExamples_test.ifc"
212-
# ./IfcOpenHouse
213-
# ./IfcAdvancedHouse
218+
./IfcOpenHouse
219+
./IfcAdvancedHouse
214220
./IfcAlignment
215221
./IfcSimplifiedAlignment
216222

src/examples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ if(SCHEMA_VERSIONS MATCHES "2x3")
5555
endif()
5656
install(TARGETS IfcParseExamples)
5757

58-
# TODO: enable after figuring out where to get get OCCT config for CI.
59-
if(WITH_OPENCASCADE AND NOT STANDALONE_PROJECT)
58+
if(WITH_OPENCASCADE)
6059
add_executable(IfcOpenHouse IfcOpenHouse.cpp)
6160
add_executable(IfcAdvancedHouse IfcAdvancedHouse.cpp)
6261
add_library(IfcHouseInterface INTERFACE)

0 commit comments

Comments
 (0)