From 3aa420ad6031447fa10a096b056488ee2e5edea4 Mon Sep 17 00:00:00 2001 From: Philipenko Vladimir Date: Wed, 20 Dec 2023 17:58:14 +0300 Subject: [PATCH] Try g++ installer --- .github/workflows/test_build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index a07a29cd..915f43a8 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -30,10 +30,14 @@ jobs: gcc --version g++ --version - name: Install g++-11 for ubuntu + if: matrix.os == 'ubuntu-20.04' + id: install_cc + uses: rlalik/setup-cpp-compiler@master + with: + compiler: g++-11 + - name: Check g++-11 for ubuntu if: matrix.os == 'ubuntu-20.04' run: | - sudo apt install g++-11 - sudo apt install gcc-11 g++ --version gcc --version ls /usr/bin/gcc* @@ -44,8 +48,8 @@ jobs: python -m cibuildwheel --output-dir wheelhouse env: CIBW_ENVIRONMENT_MACOS: > - PATH="/usr/local/opt/llvm/bin:$PATH" LDFLAGS="-L/usr/local/opt/llvm/lib" CPPFLAGS="-I/usr/local/opt/llvm/include" CXX="/usr/local/bin/g++-11" CC="/usr/local/bin/gcc-11" - CIBW_ENVIRONMENT_LINUX: CXX="/usr/bin/g++-11" CC="/usr/bin/gcc-11" + PATH="/usr/local/opt/llvm/bin:$PATH" LDFLAGS="-L/usr/local/opt/llvm/lib" CPPFLAGS="-I/usr/local/opt/llvm/include" CXX="/usr/local/bin/g++-11" + CIBW_ENVIRONMENT_LINUX: CC={{ steps.install_cc.outputs.cc }} CXX={{ steps.install_cc.outputs.cxx }} CIBW_BUILD: cp39-* cp36-* CIBW_SKIP: "*musllinux* *manylinux_x86_64" CIBW_BEFORE_BUILD_LINUX: 'if [ $(python -c "import sys; print(sys.version_info[1])") -ge 9 ]; then python -m pip install "numpy<2.0.0" --config-settings=setup-args="-Dallow-noblas=true"; fi'