File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,15 +21,24 @@ jobs:
2121 with :
2222 submodules : recursive
2323
24+ - name : Cache extern dependencies
25+ uses : actions/cache@v4
26+ with :
27+ path : extern/local
28+ key : ${{ runner.os }}-${{ runner.arch }}-extern-${{ hashFiles('build.sh', 'extern/KaHIP/**', 'extern/MtKaHyPar/**') }}
29+ restore-keys : |
30+ ${{ runner.os }}-${{ runner.arch }}-extern-
31+
2432 - name : Build wheels
25- uses : pypa/cibuildwheel@v2.16
33+ uses : pypa/cibuildwheel@v2.22
2634 env :
2735 CIBW_BUILD : cp38-* cp39-* cp310-* cp311-* cp312-*
28- CIBW_SKIP : " *-musllinux_* *-win32 *-manylinux_i686"
36+ CIBW_SKIP : " *-musllinux_* *-win32 *-manylinux_i686 *-win_amd64 "
2937 CIBW_ARCHS_LINUX : x86_64
3038 CIBW_ARCHS_MACOS : x86_64 arm64
3139 CIBW_BEFORE_BUILD : ./build.sh
3240 CIBW_BUILD_VERBOSITY : 1
41+ CIBW_DEPENDENCY_VERSIONS : latest
3342
3443 - uses : actions/upload-artifact@v4
3544 with :
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ echo "C++ compiler(CXX): $CXX"
2424
2525echo " Root : ${ROOT} "
2626
27+ # Check if dependencies are already built (from cache)
28+ if [ -d " ${ROOT} /extern/local/kahip" ] && [ -d " ${ROOT} /extern/local/mt-kahypar" ]; then
29+ echo " Found cached dependencies in extern/local, skipping download and build."
30+ else
31+ echo " Building dependencies from scratch..."
32+
2733rm -rf extern
2834mkdir -p extern/local
2935
162168echo " Bundled libs in ${MTK_LIBDIR} :"
163169ls -1 " ${MTK_LIBDIR} " | egrep ' mtkahypar|libboost_|libtbb' || true
164170
171+ fi # End of dependency build check
165172
166173# --- build SharedMap ---
167174echo " Building SharedMap..."
You can’t perform that action at this time.
0 commit comments