Skip to content

Commit f07d3e2

Browse files
authored
Update onnxruntime.yaml
1 parent 68b80f9 commit f07d3e2

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.github/workflows/onnxruntime.yaml

+22-18
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,33 @@ jobs:
1212
build_wheels:
1313
name: Build onnxruntime wheel for
1414
runs-on: ubuntu-latest
15-
container:
16-
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)
17-
options: "--entrypoint /bin/bash"
1815
strategy:
1916
matrix:
2017
python_version: ["3.10", "3.11"]
2118
steps:
2219
- name: Build Wheel
23-
run: |
24-
yum install -y wget centos-release-scl devtoolset-9
25-
export PATH=/opt/rh/devtoolset-9/root/usr/bin:$PATH
26-
wget https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-x86_64.sh
27-
chmod +x ./Mambaforge-24.3.0-0-Linux-x86_64.sh
28-
./Mambaforge-24.3.0-0-Linux-x86_64.sh -b
29-
export PATH=/github/home/mambaforge/bin/:$PATH
30-
mamba create -n pyenv python==${{ matrix.python_version }} -y
31-
mamba init
32-
source ~/.bashrc
33-
mamba activate pyenv
34-
pip install cmake numpy==2.0 onnx packaging wheel auditwheel sympy pytest
35-
git clone --depth 1 --branch v1.19.0 --recursive https://github.com/Microsoft/onnxruntime.git
36-
cd onnxruntime/
37-
./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --build_wheel
20+
uses: addnab/docker-run-action@v3
21+
with:
22+
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)
23+
shell: bash
24+
run: |
25+
yum install -y wget centos-release-scl devtoolset-9
26+
export PATH=/opt/rh/devtoolset-9/root/usr/bin:$PATH
27+
wget https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-x86_64.sh
28+
chmod +x ./Mambaforge-24.3.0-0-Linux-x86_64.sh
29+
./Mambaforge-24.3.0-0-Linux-x86_64.sh -b
30+
export PATH=/github/home/mambaforge/bin/:$PATH
31+
mamba create -n pyenv python==${{ matrix.python_version }} -y
32+
mamba init
33+
source ~/.bashrc
34+
mamba activate pyenv
35+
pip install cmake numpy==2.0 onnx packaging wheel auditwheel sympy pytest
36+
git clone --depth 1 --branch v1.19.0 --recursive https://github.com/Microsoft/onnxruntime.git
37+
cd onnxruntime/
38+
./build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --build_wheel
39+
sudo dnf -y install nodejs20
40+
mv /opt/actions-runner/externals/node20/bin/node /opt/actions-runner/externals/node20/bin/node-bak
41+
ln -s /usr/bin/node-20 /opt/actions-runner/externals/node20/bin/node
3842
- uses: actions/upload-artifact@v3
3943
with:
4044
name: wheels

0 commit comments

Comments
 (0)