diff --git a/.github/workflows/build-windows-cpu.yml b/.github/workflows/build-windows-cpu.yml index fa9d65c..b581d71 100644 --- a/.github/workflows/build-windows-cpu.yml +++ b/.github/workflows/build-windows-cpu.yml @@ -32,6 +32,13 @@ jobs: pip install --extra-index-url https://pypi.artrajz.cn/simple -r requirements.txt shell: cmd + - name: Pre download nltk data + run: | + curl -o nltk_data.zip https://github.com/Artrajz/archived/raw/main/nltk/nltk_data.zip + expand -F:* "nltk_data.zip" "C:\Programs\Miniconda3\envs\py310" + del nltk_data.zip + shell: cmd + - name: Copy python environment run: | XCOPY C:\programs\miniconda3\envs\py310 py310\ /E /Y /F diff --git a/.github/workflows/build-windows-gpu.yml b/.github/workflows/build-windows-gpu.yml index 9af3c43..5195fff 100644 --- a/.github/workflows/build-windows-gpu.yml +++ b/.github/workflows/build-windows-gpu.yml @@ -31,6 +31,13 @@ jobs: pip install --no-cache-dir torch==2.2.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 pip install --extra-index-url https://pypi.artrajz.cn/simple -r requirements.txt shell: cmd + + - name: Pre download nltk data + run: | + curl -o nltk_data.zip https://github.com/Artrajz/archived/raw/main/nltk/nltk_data.zip + expand -F:* "nltk_data.zip" "C:\Programs\Miniconda3\envs\py310" + del nltk_data.zip + shell: cmd - name: Copy python environment run: |