From e944f46a9f9856dc80b26689b1d6dbc7c2efd246 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 23 Oct 2024 15:29:08 +0200 Subject: [PATCH] Update onnxruntime.yaml --- .github/workflows/onnxruntime.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/onnxruntime.yaml b/.github/workflows/onnxruntime.yaml index dbd537f..2423fa1 100644 --- a/.github/workflows/onnxruntime.yaml +++ b/.github/workflows/onnxruntime.yaml @@ -20,6 +20,7 @@ jobs: uses: addnab/docker-run-action@v3 with: image: quay.io/pypa/manylinux2010_x86_64 #We use the outdated manylinux2010 to build the wheels to ensure compatibility with older systems (e.g. CentOS 6 and glibc 2.12) + options: -v ${{ github.workspace }}:/dist shell: bash run: | yum install -y wget centos-release-scl devtoolset-9 @@ -27,22 +28,20 @@ jobs: wget https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-x86_64.sh chmod +x ./Mambaforge-24.3.0-0-Linux-x86_64.sh ./Mambaforge-24.3.0-0-Linux-x86_64.sh -b - export PATH=/github/home/mambaforge/bin/:$PATH + export PATH=/root/mambaforge/bin/:$PATH mamba create -n pyenv python==${{ matrix.python_version }} -y mamba init source ~/.bashrc mamba activate pyenv pip install cmake numpy==2.0 onnx packaging wheel auditwheel sympy pytest - git clone --depth 1 --branch v1.19.0 --recursive https://github.com/Microsoft/onnxruntime.git + git clone --depth 1 --branch ${{ matrix.onnxruntimeBranch }} --recursive https://github.com/Microsoft/onnxruntime.git cd onnxruntime/ ./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --build_wheel - sudo dnf -y install nodejs20 - mv /opt/actions-runner/externals/node20/bin/node /opt/actions-runner/externals/node20/bin/node-bak - ln -s /usr/bin/node-20 /opt/actions-runner/externals/node20/bin/node + cp ./build/Linux/Release/dist/*.whl /dist - uses: actions/upload-artifact@v3 with: name: wheels - path: /onnxruntime/build/Linux/Release/dist/*.whl + path: ${{ github.workspace }}/*.whl publish: name: Publish wheels to pypi.scm.io