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 f4ae32e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 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,24 @@ jobs:
run: |
pyenv local "${{ matrix.python-version }}"
python3 --version
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
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
mkdir wheelhouse
cp -a ${GITHUB_WORKSPACE}/.ccache wheelhouse/.ccache
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 CCACHE_DIR=/project/wheelhouse/.ccache"
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 All @@ -106,6 +113,7 @@ jobs:
killall ccache; \
sleep 10; \
done
cp -a wheelhouse/.ccache ${GITHUB_WORKSPACE}/.ccache
- name: Show files
run: ls -lh wheelhouse
shell: bash
Expand Down

0 comments on commit f4ae32e

Please sign in to comment.