Skip to content

[CI][Update] Update CI Actions for releasing a brand new release package. #37

[CI][Update] Update CI Actions for releasing a brand new release package.

[CI][Update] Update CI Actions for releasing a brand new release package. #37

Workflow file for this run

name: Build Package
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.8' ]
architecture: [ 'x64' ]
# For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily only package executable files for Python 3.8.
# In the future, we will need to extend support to cover Python 3.8 through Python 3.10.
steps:
# Checkout the latest branch of Paddle2ONNX.
- name: Checkout Paddle2ONNX
uses: actions/checkout@v4
with:
submodules: true
- name: Build on manylinux2014_x86_64
uses: docker://quay.io/pypa/manylinux2014_x86_64:latest
with:
entrypoint: bash
args: .github/workflows/scripts/entrypoint.sh ${{ matrix.python-version }} manylinux2014_x86_64
# # Checkout the branch(v3.16.0) of Paddle2ONNX.
# - name: Checkout Protobuf
# uses: actions/checkout@v4
# with:
# repository: protocolbuffers/protobuf
# ref: v3.16.0
# path: protobuf
#
# # Build Protobuf, detailed process can refer to the [Paddle2ONNX construction documentation](https://github.com/PaddlePaddle/Paddle2ONNX/blob/develop/docs/zh/compile.md).
# - name: Build Protobuf
# working-directory: ./protobuf
# run: |
# #============
# 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/bin" >> $GITHUB_PATH
#
# # Install Dependencies for Python
# - name: Install Dependencies for Python
# run: |
# python -m pip install --upgrade pip
# pip install setuptools wheel auditwheel auditwheel-symbols build
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
#
# # Build Paddle2ONNX
# - name: Build Paddle2ONNX
# working-directory: ./paddle2onnx
# run: |
# python -m build
# python -m pip install dist/*.whl
# # Do Test
# - name: Run Test
# working-directory: ./paddle2onnx/tests
# run: |
# bash run.sh python