Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build_custom_wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build INT64 Wheel

on:
workflow_dispatch:
push:

jobs:
build-wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Build Environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: conda/environments/all_cuda-131_arch-x86_64.yaml
environment-name: cuopt_build
cache-environment: true

- name: Build Wheel
shell: bash -el {0}
run: |
./build.sh libmps_parser libcuopt cuopt --skip-tests-build --cmake-args=\"-DCUOPT_INSTANTIATE_INT64=ON -DCUOPT_INSTANTIATE_INT32=OFF\"
cd python/cuopt
python -m pip wheel . -w dist_thin --no-deps --no-build-isolation
python -m pip install auditwheel
mkdir -p dist
auditwheel repair dist_thin/*.whl --plat manylinux_2_39_x86_64 -w dist/

- name: Upload Wheel as Artifact
uses: actions/upload-artifact@v4
with:
name: cuopt-int64-wheel
path: python/cuopt/dist/*.whl
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ if buildAll || hasArg libmps_parser; then
cmake -DDEFINE_ASSERT=${DEFINE_ASSERT} \
-DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
"${CACHE_ARGS[@]}" \
"${EXTRA_CMAKE_ARGS[@]}" \
"${REPODIR}"/cpp/libmps_parser/

if hasArg -n; then
Expand Down