Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
e46e423c
"vscode:/vscode.git/clone" did not exist on "3229f93e3081332f0734545436894151aae2cfc4"
Unverified
Commit
e46e423c
authored
Apr 28, 2022
by
ver217
Committed by
GitHub
Apr 28, 2022
Browse files
add CI for releasing bdist wheel (#901)
parent
e1108caf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
.github/workflows/release_bdist.yml
.github/workflows/release_bdist.yml
+62
-0
No files found.
.github/workflows/release_bdist.yml
0 → 100644
View file @
e46e423c
name
:
Release bdist wheel
on
:
workflow_dispatch
:
inputs
:
version
:
type
:
choice
description
:
version for testing
default
:
'
all'
required
:
true
options
:
-
all
-
pytorch-cuda:1.9.0-11.1.1
# python 3.8
-
pytorch-cuda:1.8.1-11.1.1
# python 3.8
-
pytorch-cuda:1.7.1-11.0.3
# python 3.8
-
pytorch-cuda:1.6.0-10.2
# python 3.6
jobs
:
matrix_preparation
:
name
:
Prepare Container List
runs-on
:
ubuntu-latest
outputs
:
matrix
:
${{ steps.set-matrix.outputs.matrix }}
steps
:
-
id
:
set-matrix
run
:
|
[ "${{github.event.inputs.version}}" != "" ] && matrix="[\"frankleeeee/${{github.event.inputs.version}}\"]"
[ "${{github.event.inputs.version}}" == "" ] || [ "${{github.event.inputs.version}}" == "all" ] && \
matrix="[\"frankleeeee/pytorch-cuda:1.9.0-11.1.1\", \"frankleeeee/pytorch-cuda:1.8.1-11.1.1\", \"frankleeeee/pytorch-cuda:1.7.1-11.0.3\", \"frankleeeee/pytorch-cuda:1.6.0-10.2\"]"
echo $matrix
echo "::set-output name=matrix::{\"container\":$(echo $matrix)}"
build
:
name
:
Release bdist wheels
needs
:
matrix_preparation
if
:
github.repository == 'hpcaitech/ColossalAI' && contains(fromJson('["FrankLeeeee", "ver217", "feifeibear", "kurisusnowdeng"]'), github.actor)
runs-on
:
[
self-hosted
,
gpu
]
strategy
:
fail-fast
:
false
matrix
:
${{fromJson(needs.matrix_preparation.outputs.matrix)}}
container
:
image
:
${{ matrix.container }}
options
:
--gpus all --rm
timeout-minutes
:
120
steps
:
-
name
:
Install dependencies
run
:
|
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U pip setuptools wheel --user
-
uses
:
actions/checkout@v2
-
name
:
Build bdist wheel
run
:
|
python setup.py bdist_wheel
-
name
:
🚀 Deploy
uses
:
garygrossgarten/github-action-scp@release
with
:
local
:
dist/*
remote
:
${{ secrets.PRIVATE_PYPI_DIR }}
host
:
${{ secrets.PRIVATE_PYPI_HOST }}
username
:
${{ secrets.PRIVATE_PYPI_USER }}
password
:
${{ secrets.PRIVATE_PYPI_PASSWD }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment