Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
andife committed Jul 13, 2024
1 parent f1c1574 commit 6ce36c2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ jobs:
if: always() && (needs.call-workflow-ubuntu_x86.result == 'success') || (needs.call-workflow-ubuntu_aarch64.result == 'success') || ((needs.call-workflow-mac.result == 'success'))

environment:
name: pypi # TODO: Does not yet exist, has to be created, see here: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
url: https://pypi.org/p/onnx
name: testpypi # TODO: Does not yet exist, has to be created, see here: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
url: https://test.pypi.org/p/af-test-onnx-sigstore
#url: https://pypi.org/p/onnx

#environment:
# name: pypi # TODO: Does not yet exist, has to be created, see here: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# url: https://pypi.org/p/onnx

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases # TODO: check what is needed here?
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/manylinux/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set -e -x
PY_VERSION=$1
PLAT=$2
GITHUB_EVENT_NAME=$3
DATE_FOR_WEEKLY=$4

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

Expand Down Expand Up @@ -40,9 +41,16 @@ export CMAKE_ARGS="-DPYTHON_INCLUDE_DIR=/opt/python/${PY_VER}/include/python$PY_
# Install Python dependency
$PIP_INSTALL_COMMAND -r requirements-release.txt || { echo "Installing Python requirements failed."; exit 1; }

todays_date=".dev" + $DATE_FOR_WEEKLY #datetime.date.today().strftime("%Y%m%d")
sed ' 1 s/.*/$todays_date/' VERSION_NUMBER

# Build wheels
if [ "$GITHUB_EVENT_NAME" == "schedule" ]; then
sed -i 's/name = "onnx"/name = "onnx-weekly"/' 'pyproject.toml'
todays_date=".dev" + $DATE_FOR_WEEKLY #datetime.date.today().strftime("%Y%m%d")
sed -i ' 1 s/.*/$todays_date/' VERSION_NUMBER

# _version += ".dev" + todays_date
ONNX_PREVIEW_BUILD=1 $PYTHON_COMMAND -m build --wheel || { echo "Building wheels failed."; exit 1; }
else
$PYTHON_COMMAND -m build --wheel || { echo "Building wheels failed."; exit 1; }
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on: # Specifies the event triggering the workflow
required: true
type: string



permissions: # set top-level default permissions as security best practice
contents: read

Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
uses: docker://quay.io/pypa/manylinux2014_x86_64:latest
with:
entrypoint: bash
args: .github/workflows/manylinux/entrypoint.sh ${{ matrix.python-version }} manylinux2014_x86_64 ${{ github.event_name }}
args: .github/workflows/manylinux/entrypoint.sh ${{ matrix.python-version }} manylinux2014_x86_64 ${{ github.event_name }} $${{ inputs.currdate}}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
Expand Down

0 comments on commit 6ce36c2

Please sign in to comment.