-
Notifications
You must be signed in to change notification settings - Fork 25
61 lines (52 loc) · 1.46 KB
/
build-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 }}