Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 23 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
- name: MyPY
run: |
mypy src tests
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v3.3.0
with:
clang-format-version: "11"
check-path: "/src/bindings/"
fallback-style: "Google" # optional
# - name: Run clang-format style check for C/C++ programs.
# uses: jidicula/clang-format-action@v3.3.0
# with:
# clang-format-version: "11"
# check-path: "/src/bindings/"
# fallback-style: "Google" # optional

build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -77,6 +77,23 @@ jobs:
run: |
@("C:\Program Files\Git\usr\bin") + (Get-Content $env:GITHUB_PATH) | Set-Content $env:GITHUB_PATH -Encoding utf8

- name: Build Google DP and wheel on Linux # for debug
if: runner.os == 'Linux'
timeout-minutes: 20
shell: bash
run: |
pip install cibuildwheel
export CIBW_PLATFORM=linux
# Set for which Python version to build.
system_python_version=${{ matrix.python-version }}
py_version=${system_python_version//.} # 3.11 -> 311
export CIBW_BUILD=cp${py_version}-manylinux_x86_64
export CIBW_BUILD_VERBOSITY=1
export CIBW_BEFORE_ALL_LINUX="yum install -y openssl-devel || dnf install -y openssl-devel || apt-get install -y libssl-dev"
# Build wheel
echo "Building ${CIBW_BUILD} wheel"
python -m cibuildwheel --output-dir dist .

- name: Build Google DP Unix
if: runner.os != 'Windows'
timeout-minutes: 20
Expand Down
28 changes: 22 additions & 6 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
- name: MyPY
run: |
mypy src tests
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: "11"
check-path: "/src/bindings/"
fallback-style: "Google" # optional
# - name: Run clang-format style check for C/C++ programs.
# uses: jidicula/clang-format-action@v4.11.0
# with:
# clang-format-version: "11"
# check-path: "/src/bindings/"
# fallback-style: "Google" # optional

build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -104,6 +104,22 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Build Google DP and wheel on Linux # for debug
if: runner.os == 'Linux'
timeout-minutes: 20
shell: bash
run: |
pip install cibuildwheel
export CIBW_PLATFORM=linux
# Set for which Python version to build.
system_python_version=${{ matrix.python-version }}
py_version=${system_python_version//.} # 3.11 -> 311
export CIBW_BUILD=cp${py_version}-manylinux_x86_64
export CIBW_BUILD_VERBOSITY=1
# Build wheel
echo "Building ${CIBW_BUILD} wheel"
python -m cibuildwheel --output-dir dist .

- name: Build Google DP Unix
if: runner.os != 'Windows'
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run(self):
return

# Build _pydp.so (wrappers for C++).
os.system("./build_PyDP.sh")
os.system("./build_PyDP_linux.sh")

# Copy _pydp.so to cibuildwheel directory.
pydp_lib = "src/pydp/_pydp.so"
Expand Down
Loading