Skip to content

Commit

Permalink
CI: Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed Jul 18, 2024
1 parent 67896d9 commit 12a8e48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,23 @@ jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
cxx_compiler:
- { name: "gcc", cc: "gcc", cxx: "g++" }
- { name: "clang", cc: "clang", cxx: "clang++" }
#os: [ubuntu-20.04, macos-12]
#python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [macos-12]
python-version: ["3.12"]
compiler: ["gcc", "clang"]
include:
- os: macos-12
compiler: gcc
cc: gcc-11
cxx: g++-11
- os: macos-12
compiler: clang
cc: $(brew --prefix llvm@15)/bin/clang
cxx: $(brew --prefix llvm@15)/bin/clang++

#- {os: macos-12, cc: "gcc-11", cxx: "g++-11"}
#- {os: macos-12, cc: "clang-14", cxx: "clang++-14" }
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -48,8 +60,8 @@ jobs:
run: |
export LIBCOMMUTE_DIR=${GITHUB_WORKSPACE}/libcommute.installed
export LIBCOMMUTE_INCLUDEDIR=${LIBCOMMUTE_DIR}/include
export CC="${{ matrix.cxx_compiler.cc }}"
export CXX="${{ matrix.cxx_compiler.cxx }}"
export CC=$(which "${{ matrix.cc }}")
export CXX=$(which "${{ matrix.cxx }}")
tox -e py
- name: Lint with flake8
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#

import os
import sys
from setuptools import setup
from packaging.specifiers import SpecifierSet
from packaging.version import Version
Expand Down Expand Up @@ -86,7 +87,9 @@ def build_extensions(self):
for ext in self.extensions:
ext.include_dirs.append(self.libcommute_includedir)
ext.cxx_std = 17
ext.extra_compile_args += ["-O3", "-march=native"]
ext.extra_compile_args.append("-O3")
if not sys.platform.startswith("darwin"):
ext.extra_compile_args.append("-march=native")

build_ext.build_extensions(self)

Expand Down

0 comments on commit 12a8e48

Please sign in to comment.