diff --git a/packages/onnxruntime/Dockerfile b/packages/onnxruntime/Dockerfile new file mode 100644 index 0000000..306c8d5 --- /dev/null +++ b/packages/onnxruntime/Dockerfile @@ -0,0 +1,17 @@ +FROM ghcr.io/bjia56/armv7l-wheel-builder:main +ARG PYTHON_VERSION +ARG VERSION +ARG OUTPUT_DIR + +ENV CC=/opt/rh/devtoolset-10/root/usr/bin/gcc +ENV FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran5 +ENV CXX=/opt/rh/devtoolset-10/root/usr/bin/g++ +ENV LD=/opt/rh/devtoolset-10/root/usr/bin/ld +ENV PATH=/opt/rh/devtoolset-10/root/usr/bin:$PATH + +WORKDIR / +RUN select_python ${PYTHON_VERSION} +RUN git clone --recurse-submodules -j4 --single-branch --branch=${VERSION} https://github.com/Microsoft/onnxruntime.git +WORKDIR onnxruntime +RUN ./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --build_wheel +RUN find . diff --git a/packages/onnxruntime/build.yaml b/packages/onnxruntime/build.yaml new file mode 100644 index 0000000..81762ee --- /dev/null +++ b/packages/onnxruntime/build.yaml @@ -0,0 +1,15 @@ +strategy: dockerfile +source: +- file: ./Dockerfile + extended: true + +python: + versions: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + +package: + versions: latest