Update Dockerfile.build #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Wheel | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "Cross_platform", "Build_in_Manylinux_image" ] | |
pull_request: | |
branches: [ "Cross_platform", "Build_in_Manylinux_image" ] | |
jobs: | |
build-wheel: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# - run: yum install -y zip ninja-build | |
# - run: | | |
# git clone --depth=1 http://www.github.com/Microsoft/vcpkg | |
# cd vcpkg | |
# ./bootstrap-vcpkg.sh | |
# - run: | | |
# curl -OL http://download.osgeo.org/geos/geos-3.3.5.tar.bz2 | |
# tar xfj geos-3.3.5.tar.bz2 | |
# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build_geos/_installed -DBUILD_SHARED_LIBS=ON -DBUILD_DOCUMENTATION=OFF -DBUILD_TESTING=OFF -G Ninja -B build_geos -S geos-3.3.5 | |
# cmake --build build_geos | |
# cp build_geos/lib/libgeos_c.so sDNA/geos/x64/src | |
# - name: Configure Ninja, compile .so, and build Wheel. | |
# run: | | |
# export PATH=/opt/python/cp312-cp312/bin/:$PATH | |
# python -m venv venv | |
# . venv/bin/activate | |
# python -m pip install build hatchling hatch-requirements-txt | |
# export VCPKG_INSTALLATION_ROOT=vcpkg | |
# python -m build --no-isolation --wheel | |
- name: Build Docker Image | |
run: docker build --file Dockerfile.build --tag sdna_manylinux_wheel_builder . | |
- name: Run Docker Container from image | |
run: docker run --rm -v .:/home/sdna_plus sdna_manylinux_wheel_builder | |
- name: upload_output | |
id: installer-upload-step | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python_wheel_gcc_linux | |
path: dist |