Skip to content

Commit

Permalink
Try g++ installer
Browse files Browse the repository at this point in the history
  • Loading branch information
vovaf709 committed Dec 20, 2023
1 parent a8d39f0 commit 3aa420a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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'

0 comments on commit 3aa420a

Please sign in to comment.