-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test build on macos-latest * fix bug * test entrypoint.sh * fix bug * test build on macos-latest * fix bug * fix bug * fix bug * fix bug * fix bug * test release_mac * fix bug * test release_mac * fix bug * skip test_empty * test release mac * finish release_mac test
- Loading branch information
Showing
6 changed files
with
127 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: MacRelease | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
# Use MACOSX_DEPLOYMENT_TARGET=12.0 to produce compatible wheel | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: "12.0" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
architecture: [ 'arm64' ] | ||
|
||
steps: | ||
# Checkout the latest branch of Paddle2ONNX. | ||
- name: Checkout Paddle2ONNX | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
# Checkout the latest branch of Paddle2ONNX. | ||
- name: Checkout Paddle2ONNX | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
# Setup Python | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Download protobuf | ||
- name: Download protobuf | ||
run: | | ||
source .github/workflows/scripts/download_protobuf.sh | ||
# Install Python dependencies | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install -q --upgrade pip | ||
python -m pip install setuptools wheel build twine | ||
# Build package | ||
- name: Build package | ||
run: | | ||
export PATH="${{ github.workspace }}/installed_protobuf/bin:$PATH" | ||
python -m build --wheel | ||
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
- name: Publish package | ||
run: | | ||
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PADDLE2ONNX_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters