-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release build workflow to use the new scripts (#486)
* update release build workflow * debug * clean up * minor fix --------- Co-authored-by: dhuangnm <dhuang@MacBook-Pro-2.local>
- Loading branch information
Showing
2 changed files
with
61 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build release wheel | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/*' | ||
|
||
workflow_dispatch: | ||
inputs: | ||
gitref: | ||
description: "git tag, commit or branch name for the release" | ||
type: string | ||
required: true | ||
default: 'release/1.8' | ||
|
||
jobs: | ||
build-release-wheel: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.gitref }} | ||
|
||
- name: Build PyPi Wheel | ||
id: build | ||
uses: neuralmagic/nm-actions/actions/pypi_build@main | ||
with: | ||
dev: false | ||
release: true | ||
|
||
- name: Set Env | ||
run: | | ||
pip3 install --upgrade pip && pip3 install --upgrade setuptools | ||
pip3 install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
- name: upload whl | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: "wheel-sparsezoo" | ||
path: ${{ steps.build.outputs.whlname }} | ||
retention-days: 7 | ||
|
||
- name: upload tar.gz | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: "tar-sparsezoo" | ||
path: ${{ steps.build.outputs.tarname }} | ||
retention-days: 7 | ||
|
||
- name: Install whl | ||
run: | | ||
pip3 install ${{ steps.build.outputs.whlname }} |
This file was deleted.
Oops, something went wrong.