Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Nov 25, 2024
1 parent bde204e commit 93029fe
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .github/manylinux-wheel.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/manylinux-wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Build a manylinux wheel"

on:
push:
branches:
- manylinux-release

jobs:
build-wheel:
name: Build manylinux wheel
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
sudo apt-get install -y wget software-properties-common wget lsb-release gnupg
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get install cmake g++-11
ls /usr/bin/g++*
- name: Install vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg && ./bootstrap-vcpkg.sh
echo "VCPKG_ROOT=${{github.workspace}}/vcpkg" >> $GITHUB_ENV
echo "${{github.workspace}}/vcpkg" >> $GITHUB_PATH
./vcpkg integrate install
- name: Install dependencies
run: python -m pip install -U pip "pybind11[global]" cmake build

- name: Build
run: python -m build -o dist

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: ubuntu-20.04 wheel
path: ${{github.workspace}}/dist/*.whl
39 changes: 38 additions & 1 deletion manylinux.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
FROM dockcross/manylinux-x64
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC

RUN apt-get update && apt-get install -y \
wget \
software-properties-common \
lsb-release \
gnupg

RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"

RUN apt-get install -y \
build-essential \
curl \
git \
python3-dev \
python3-pip \
python3-venv \
yasm \
cmake \
git \
zip \
unzip \
tar \
&& rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install \
wheel \
setuptools \
twine \
auditwheel \
build

RUN cd / && git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && ./bootstrap-vcpkg.sh

COPY scripts/build-wheel-linux.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down
8 changes: 6 additions & 2 deletions scripts/build-wheel-linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

apt update && apt install git -y
python -m pip install
export VCPKG_ROOT=${PWD}
export PATH=\$VCPKG_ROOT:\$PATH

cd /acquire-zarr
/usr/bin/python3 -m build -o dist
/usr/bin/ls -l dist

0 comments on commit 93029fe

Please sign in to comment.