Skip to content

Commit

Permalink
Add arm build image
Browse files Browse the repository at this point in the history
  • Loading branch information
nmreadelf committed Jul 28, 2023
1 parent 63ce0ae commit a3c2056
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build_arm_whells.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build arm64

on:
# for test action
pull_request:
branches:
- main
- feat/add-arm-wheel-build
# end for test action
workflow_dispatch:
inputs:
TAG_NAME:
Expand Down Expand Up @@ -76,23 +82,23 @@ jobs:
run: |
pyenv local "${{ matrix.python-version }}"
python3 --version
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
set
shell: bash -l {0}
continue-on-error: false
- name: Install dependencies for building wheels
run: |
python3 -m pip install -U pip tox pybind11 twine setuptools wheel
python3 -m pip install -U pip tox twine setuptools wheel
python3 -m pip install cibuildwheel==2.12.1
shell: bash -l {0}
- name: Build wheels
run: python3 -m cibuildwheel --output-dir wheelhouse
timeout-minutes: 300
env:
CIBW_DEBUG: 1
CIBW_BEFORE_BUILD_LINUX: "yum install -y wget && wget https://apt.llvm.org/llvm.sh; chmod +x llvm.sh; bash ./llvm.sh 15; which clang++-15; wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-aarch64.tar.gz -O patchelf.tar.gz; tar -xvf patchelf.tar.gz; cp bin/patchelf /usr/bin/; chmod +x /usr/bin/patchelf; patchelf --version;"
CIBW_MANYLINUX_AARCH64_IMAGE: "docker.io/nmreadelf/chdb-action:2023-07-28"
CIBW_BEFORE_BUILD_LINUX: "apt update && apt install -qq -y wget lsb-release wget software-properties-common ccache gnupg make cmake ninja-build yasm gawk && wget -q https://apt.llvm.org/llvm.sh && bash ./llvm.sh 15 && wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-aarch64.tar.gz -O patchelf.tar.gz && tar -xvf patchelf.tar.gz && cp bin/patchelf /usr/bin/ && chmod +x /usr/bin/patchelf && patchelf --version;"
CIBW_CONTAINER_ENGINE: podman
CIBW_ENVIRONMENT_LINUX: "CC=/usr/bin/clang CXX=/usr/bin/clang++"
CIBW_ENVIRONMENT_LINUX: "CC=/usr/bin/clang-15 CXX=/usr/bin/clang++-15"
CIBW_BEFORE_BUILD: "pip install -U pip tox pybind11 && bash -x gen_manifest.sh && bash chdb/build.sh"
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: "cp38-manylinux_aarch64 cp39-manylinux_aarch64 cp310-manylinux_aarch64"
Expand Down

0 comments on commit a3c2056

Please sign in to comment.