Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1289

Closed
wants to merge 3 commits into from
Closed

update #1289

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 58 additions & 58 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
name: Build Package
# name: Build Package

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
# on:
# push:
# branches: [ "develop" ]
# pull_request:
# branches: [ "develop" ]

permissions:
contents: read
# permissions:
# contents: read

jobs:
build:
# For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily run on Ubuntu-latest.
# However, to ensure the stability of the packaging system, we will need to fix the Ubuntu version in the future.
runs-on: ubuntu-latest
# jobs:
# build:
# # For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily run on Ubuntu-latest.
# # However, to ensure the stability of the packaging system, we will need to fix the Ubuntu version in the future.
# runs-on: ubuntu-latest

# 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:
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
# # 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:
# - name: Setup Python 3.8
# uses: actions/setup-python@v5
# with:
# python-version: '3.8'

# Checkout the latest branch of Paddle2ONNX.
- name: Checkout Paddle2ONNX
uses: actions/checkout@v4
with:
submodules: true
path: paddle2onnx
# # Checkout the latest branch of Paddle2ONNX.
# - name: Checkout Paddle2ONNX
# uses: actions/checkout@v4
# with:
# submodules: true
# path: paddle2onnx

# 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
# # 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
# # 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
# # Install Dependencies for Python
# - name: Install Dependencies for Python
# run: |
# python -m pip install --upgrade pip
# pip install setuptools wheel auditwheel auditwheel-symbols build

# Build Paddle2ONNX
- name: Build Paddle2ONNX
working-directory: ./paddle2onnx
run: |
python -m build
python -m pip install dist/*.whl
# # Build Paddle2ONNX
# - name: Build Paddle2ONNX
# working-directory: ./paddle2onnx
# run: |
# python -m build
# python -m pip install dist/*.whl

# Install Test
- name: Run Test
working-directory: ./paddle2onnx/tests
run: |
bash run.sh python
# # Install Test
# - name: Run Test
# working-directory: ./paddle2onnx/tests
# run: |
# bash run.sh python
13 changes: 8 additions & 5 deletions .github/workflows/release_linux_aarch64.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: LinuxRelease_aarch64

on:
release:
types: [published]
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

permissions:
contents: read
Expand All @@ -12,8 +14,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
architecture: [ 'x64' ]
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: [ '3.8']
architecture: [ 'arm64' ]

steps:
# Checkout the latest branch of Paddle2ONNX.
Expand All @@ -23,7 +26,7 @@ jobs:
submodules: true

# setting up qemu for enabling aarch64 binary execution on x86 machine
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
# - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0

- name: Build on manylinux2014_aarch64
uses: docker://quay.io/pypa/manylinux2014_aarch64:latest
Expand Down