Skip to content

Commit

Permalink
initial onnxruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jun 1, 2024
1 parent d4e4080 commit 5e98c7a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/onnxruntime/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
15 changes: 15 additions & 0 deletions packages/onnxruntime/build.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e98c7a

Please sign in to comment.