diff --git a/.github/workflows/fairseq.yml b/.github/workflows/fairseq.yml index 7fb040f..2bafc8b 100644 --- a/.github/workflows/fairseq.yml +++ b/.github/workflows/fairseq.yml @@ -1,5 +1,5 @@ name: fairseq -on: [workflow_dispatch, push, pull_request] +on: [workflow_dispatch] jobs: build: name: Build fairseq @@ -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 diff --git a/README.md b/README.md index b9da24c..a38bde2 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,7 @@ 请在Action里面找你想要的wheel包 目前已支持: -- [fairseq](https://github.com/facebookresearch/fairseq): python 3.10, 3.11, 3.12 \ No newline at end of file +- [fairseq](https://github.com/facebookresearch/fairseq): python 3.10, 3.11, 3.12 + +> [!note] +> 你可以fork本仓库,然后在自己的github上使用action功能,点击按钮就能生成最新的包构建的wheel。 \ No newline at end of file