From 2da34df5772a94ff5898e23a59c069efce0ed127 Mon Sep 17 00:00:00 2001 From: silverwolf-x <185666132@qq.com> Date: Fri, 22 Nov 2024 23:14:57 +0800 Subject: [PATCH] first commit --- .github/workflows/fairseq.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/fairseq.yml diff --git a/.github/workflows/fairseq.yml b/.github/workflows/fairseq.yml new file mode 100644 index 0000000..2e367ba --- /dev/null +++ b/.github/workflows/fairseq.yml @@ -0,0 +1,24 @@ +name: fairseq +on: [workflow_dispatch, push, pull_request] +jobs: + build: + name: Build for multiple Python versions + runs-on: windows-latest + strategy: + matrix: + python-version: [3.10, 3.11, 3.12] + steps: + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: | + python -m pip install --upgrade "pip<24.1" + pip install fairseq + - run: | + python -c "import torch; print(f'Using torch version: {torch.__version__}')" + continue-on-error: true + - uses: actions/upload-artifact@v3 + with: + name: Windows whl + path: fairseq-*.whl + if-no-files-found: error