Skip to content

Commit

Permalink
Updated onnxrt_build.sh (adding --allow_running_as_root) and Dockerfi…
Browse files Browse the repository at this point in the history
…le (pip install flatbuffers)
  • Loading branch information
junechul committed Nov 30, 2024
1 parent 9b39876 commit 376593c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 50 deletions.
98 changes: 49 additions & 49 deletions .github/workflows/master-workflow-debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,56 +14,56 @@ jobs:
base_image: "debian:12.5"
sdk_ver: 10.1.0

## Library build: Debian 12.5
onnxrt_build_debian12-5:
needs: docker_build_debian12-5
uses: ./.github/workflows/lib-onnxrt-build.yaml
secrets:
env_PAT: ${{ secrets.GHCR_PAT }}
with:
arch: arm64
base_image: "debian:12.5"
sdk_ver: 10.1.0
# ## Library build: Debian 12.5
# onnxrt_build_debian12-5:
# needs: docker_build_debian12-5
# uses: ./.github/workflows/lib-onnxrt-build.yaml
# secrets:
# env_PAT: ${{ secrets.GHCR_PAT }}
# with:
# arch: arm64
# base_image: "debian:12.5"
# sdk_ver: 10.1.0

tflite_build_debian12-5:
needs: docker_build_debian12-5
uses: ./.github/workflows/lib-tflite-build.yaml
secrets:
env_PAT: ${{ secrets.GHCR_PAT }}
with:
arch: arm64
base_image: "debian:12.5"
sdk_ver: 10.1.0
# tflite_build_debian12-5:
# needs: docker_build_debian12-5
# uses: ./.github/workflows/lib-tflite-build.yaml
# secrets:
# env_PAT: ${{ secrets.GHCR_PAT }}
# with:
# arch: arm64
# base_image: "debian:12.5"
# sdk_ver: 10.1.0

dlr_build_debian12-5:
needs: docker_build_debian12-5
uses: ./.github/workflows/lib-dlr-build.yaml
secrets:
env_PAT: ${{ secrets.GHCR_PAT }}
with:
arch: arm64
base_image: "debian:12.5"
sdk_ver: 10.1.0
# dlr_build_debian12-5:
# needs: docker_build_debian12-5
# uses: ./.github/workflows/lib-dlr-build.yaml
# secrets:
# env_PAT: ${{ secrets.GHCR_PAT }}
# with:
# arch: arm64
# base_image: "debian:12.5"
# sdk_ver: 10.1.0

tidl_build_debian12-5:
needs: docker_build_debian12-5
uses: ./.github/workflows/lib-tidl-build.yaml
secrets:
env_PAT: ${{ secrets.GHCR_PAT }}
with:
arch: arm64
base_image: "debian:12.5"
sdk_ver: 10.1.0
# tidl_build_debian12-5:
# needs: docker_build_debian12-5
# uses: ./.github/workflows/lib-tidl-build.yaml
# secrets:
# env_PAT: ${{ secrets.GHCR_PAT }}
# with:
# arch: arm64
# base_image: "debian:12.5"
# sdk_ver: 10.1.0

## Release
release_debian12-5:
uses: ./.github/workflows/release-debian.yaml
needs:
- onnxrt_build_debian12-5
- tflite_build_debian12-5
- dlr_build_debian12-5
- tidl_build_debian12-5
secrets:
gh_TOKEN: ${{ secrets.GHCR_PAT }}
with:
sdk_ver: 10.1.0
# ## Release
# release_debian12-5:
# uses: ./.github/workflows/release-debian.yaml
# needs:
# - onnxrt_build_debian12-5
# - tflite_build_debian12-5
# - dlr_build_debian12-5
# - tidl_build_debian12-5
# secrets:
# gh_TOKEN: ${{ secrets.GHCR_PAT }}
# with:
# sdk_ver: 10.1.0
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
else \
python3 -m pip install numpy setuptools wheel pybind11 pytest; \
fi && \
python3 -m pip install flatbuffers && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# cmake >= 3.24
Expand Down
3 changes: 2 additions & 1 deletion scripts/onnxrt_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ SECONDS=0
--cmake_extra_defines="CMAKE_TOOLCHAIN_FILE=$(pwd)/tool.cmake" \
--path_to_protoc_exe $(pwd)/cmake/external/protoc-${protobuf_ver}-linux-aarch_64/bin/protoc \
--use_tidl \
--build_wheel
--build_wheel \
--allow_running_as_root

# chmod
chmod -R a+w $WORK_DIR/workarea
Expand Down

0 comments on commit 376593c

Please sign in to comment.