Skip to content

Commit 3fa54ff

Browse files
committed
* disabled windows for now
* added loading from cache
1 parent 380b0a0 commit 3fa54ff

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ echo "C++ compiler(CXX): $CXX"
2424

2525
echo "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+
2733
rm -rf extern
2834
mkdir -p extern/local
2935

@@ -162,6 +168,7 @@ fi
162168
echo "Bundled libs in ${MTK_LIBDIR}:"
163169
ls -1 "${MTK_LIBDIR}" | egrep 'mtkahypar|libboost_|libtbb' || true
164170

171+
fi # End of dependency build check
165172

166173
# --- build SharedMap ---
167174
echo "Building SharedMap..."

0 commit comments

Comments
 (0)