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
gaoqiong
flash-attention
Commits
bc6d4992
Commit
bc6d4992
authored
Aug 10, 2023
by
Pierce Freeman
Browse files
Build wheel on each push
parent
565615c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
44 deletions
+46
-44
.github/workflows/publish.yml
.github/workflows/publish.yml
+46
-44
No files found.
.github/workflows/publish.yml
View file @
bc6d4992
...
@@ -7,10 +7,12 @@
...
@@ -7,10 +7,12 @@
name
:
Build wheels and deploy
name
:
Build wheels and deploy
#on:
# create:
# tags:
# - '**'
on
:
on
:
create
:
push
tags
:
-
'
**'
jobs
:
jobs
:
setup_release
:
setup_release
:
...
@@ -152,44 +154,44 @@ jobs:
...
@@ -152,44 +154,44 @@ jobs:
run
:
|
run
:
|
ls dist
ls dist
-
name
:
Upload Release Asset
#
- name: Upload Release Asset
id
:
upload_release_asset
#
id: upload_release_asset
uses
:
actions/upload-release-asset@v1
#
uses: actions/upload-release-asset@v1
env
:
#
env:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
#
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with
:
#
with:
upload_url
:
${{ steps.get_current_release.outputs.upload_url }}
#
upload_url: ${{ steps.get_current_release.outputs.upload_url }}
asset_path
:
./dist/${{env.wheel_name}}
#
asset_path: ./dist/${{env.wheel_name}}
asset_name
:
${{env.wheel_name}}
#
asset_name: ${{env.wheel_name}}
asset_content_type
:
application/*
#
asset_content_type: application/*
publish_package
:
#
publish_package:
name
:
Publish package
#
name: Publish package
needs
:
[
build_wheels
]
#
needs: [build_wheels]
runs-on
:
ubuntu-latest
#
runs-on: ubuntu-latest
steps
:
#
steps:
-
uses
:
actions/checkout@v3
#
- uses: actions/checkout@v3
-
uses
:
actions/setup-python@v4
#
- uses: actions/setup-python@v4
with
:
#
with:
python-version
:
'
3.10'
#
python-version: '3.10'
-
name
:
Install dependencies
#
- name: Install dependencies
run
:
|
#
run: |
pip install ninja packaging setuptools wheel twine
#
pip install ninja packaging setuptools wheel twine
pip install torch
#
pip install torch
-
name
:
Build core package
#
- name: Build core package
env
:
#
env:
FLASH_ATTENTION_SKIP_CUDA_BUILD
:
"
TRUE"
#
FLASH_ATTENTION_SKIP_CUDA_BUILD: "TRUE"
run
:
|
#
run: |
python setup.py sdist --dist-dir=dist
#
python setup.py sdist --dist-dir=dist
-
name
:
Deploy
#
- name: Deploy
env
:
#
env:
TWINE_USERNAME
:
${{ secrets.PYPI_USERNAME }}
#
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD
:
${{ secrets.PYPI_TOKEN }}
#
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run
:
|
#
run: |
python -m twine upload dist/*
#
python -m twine upload dist/*
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