Skip to content

Commit

Permalink
build paddle2onnx in .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhang533 committed Mar 27, 2024
1 parent 64ea8ba commit e60dc1a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -26,9 +26,6 @@ jobs:
submodules: true
path: paddle2onnx

- name: Show Working directory
run: ls

- name: Checkout Protobuf
uses: actions/checkout@v4
with:
Expand All @@ -43,13 +40,15 @@ jobs:
cmake ./cmake -B build_wd -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install_dir
cmake --build ./build_wd
cmake --build ./build_wd -- install
echo "$PWD/install_dir" >> $GITHUB_PATH
- name: Show Working directory
run: ls
echo "$PWD/install_dir/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools auditwheel auditwheel-symbols
pip install setuptools wheel auditwheel auditwheel-symbols
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build Paddle2ONNX
working-directory: ./paddle2onnx
run: |
python setup.py install

0 comments on commit e60dc1a

Please sign in to comment.