Skip to content

Commit

Permalink
test: manylinux arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Jan 31, 2025
1 parent ddba692 commit 016ba5b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ jobs:
pip install twine==6.0.1
twine upload --repository testpypi --skip-existing -u __token__ -p "${{ secrets.TEST_PYPI_API_TOKEN }}" dist/*
manylinux-wheel-arm:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Build Manylinux wheel ARM
run: |
docker build -t cargodock ./manylinux -f ./manylinux/aarch64.dockerfile
docker run --rm -v ${PWD}:/io cargodock bash /io/manylinux/build_wheel.sh
- name: Publish Manylinux wheel ARM
run: |
pip install twine==6.0.1
twine upload --repository testpypi --skip-existing -u __token__ -p "${{ secrets.TEST_PYPI_API_TOKEN }}" dist/*
macos-arm-wheel:
runs-on: macos-14
Expand Down
16 changes: 16 additions & 0 deletions manylinux/aarch64.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM quay.io/pypa/manylinux2014_aarch64

# Install unix-odbc from source. Version installed via YUM is too old
RUN curl https://www.unixodbc.org/unixODBC-2.3.9.tar.gz > unixODBC-2.3.9.tar.gz
RUN tar -xzf unixODBC-2.3.9.tar.gz
RUN cd unixODBC-2.3.9 && ./configure && make && make install

# RUN yum search unixodbc
# RUN yum install unixODBC.x86_64 -y

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable

# Wheels are zip files. Needed to zip it again after editing it
RUN yum install zip -y

ENV PATH="/root/.cargo/bin:$PATH"

0 comments on commit 016ba5b

Please sign in to comment.