From 96523ad0539fa4eb07568b3f846521e04d6671c8 Mon Sep 17 00:00:00 2001 From: Mate Soos Date: Thu, 18 Jul 2024 21:05:34 +0200 Subject: [PATCH] Let's try it this way --- .github/workflows/python-wheel-build.yml | 49 ++++++++++++++++-------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/.github/workflows/python-wheel-build.yml b/.github/workflows/python-wheel-build.yml index ff9d40626..ee8c0003f 100644 --- a/.github/workflows/python-wheel-build.yml +++ b/.github/workflows/python-wheel-build.yml @@ -16,25 +16,25 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Checkout CaDiCaL - uses: actions/checkout@v3 - with: - repository: meelgroup/cadical - ref: 'add_dynamic_lib' - path: python/cadical + # - name: Checkout CaDiCaL + # uses: actions/checkout@v3 + # with: + # repository: meelgroup/cadical + # ref: 'add_dynamic_lib' + # path: python/cadical - - name: Checkout Cadiback - uses: actions/checkout@v3 - with: - repository: meelgroup/cadiback - ref: 'mate' - path: python/cadiback + # - name: Checkout Cadiback + # uses: actions/checkout@v3 + # with: + # repository: meelgroup/cadiback + # ref: 'mate' + # path: python/cadiback - - name: configure and build CaDiCaL - run: cd python/cadical && CXXFLAGS=-fPIC ./configure --competition && make -j4 + # - name: configure and build CaDiCaL + # run: cd python/cadical && CXXFLAGS=-fPIC ./configure --competition && make -j4 - - name: Configure and build Cadiback - run: cd python/cadiback && ./configure && make -j4 + # - name: Configure and build Cadiback + # run: cd python/cadiback && ./configure && make -j4 # Used to host cibuildwheel - uses: actions/setup-python@v3 @@ -45,6 +45,23 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: + CIBW_BEFORE_BUILD: > + pwd + echo "here" + ls + echo "here2" + git clone https://github.com/meelgroup/cadical.git + cd cadical + git checkout add_dynamic_lib + ./configure + make -j4 + cd .. + git clone https://github.com/meelgroup/cadiback.git + cd cadical + git checkout mate + ./configure + make -j4 + cd .. CIBW_BEFORE_ALL_LINUX: yum install -y gmp-devel CIBW_SKIP: "*musl*" CIBW_ARCHS: "auto64"