Skip to content

Commit

Permalink
feat: workflow_dispatch only
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwolf-x committed Nov 22, 2024
1 parent 3c2b772 commit 87a3cb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/fairseq.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: fairseq
on: [workflow_dispatch, push, pull_request]
on: [workflow_dispatch]
jobs:
build:
name: Build fairseq
Expand All @@ -11,13 +11,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: |
- name: pip wheel fairseq with pip<24.1
run: |
python -m pip install --upgrade "pip<24.1"
pip wheel fairseq
- run: |
python -c "import torch; print(f'Using torch version: {torch.__version__}')"
continue-on-error: true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows whl
path: fairseq-*.whl
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
请在Action里面找你想要的wheel包

目前已支持:
- [fairseq](https://github.com/facebookresearch/fairseq): python 3.10, 3.11, 3.12
- [fairseq](https://github.com/facebookresearch/fairseq): python 3.10, 3.11, 3.12

> [!note]
> 你可以fork本仓库,然后在自己的github上使用action功能,点击按钮就能生成最新的包构建的wheel。

0 comments on commit 87a3cb2

Please sign in to comment.