From dac12cc25013aa5389b930d093e0521fd8f6e5dc Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 27 Jun 2024 16:43:59 -0700 Subject: [PATCH] update. --- action.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/action.yml b/action.yml index 2993cc6..7c6bbc0 100644 --- a/action.yml +++ b/action.yml @@ -210,26 +210,11 @@ runs: ## ## ##################################################################################### - - name: '[Windows] Cache Conda' - if: ${{ inputs.os != 'windows' }} - uses: actions/cache@v4 - env: - # Increase this value to reset cache if the environment file has not changed - CACHE_NUMBER: 0 - with: - path: C:\Miniconda3\envs\comfyui - key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles(format('{0}', inputs.conda_env_file)) }} - - - name: '[Win] Setup Conda' - uses: conda-incubator/setup-miniconda@v3 + - name: '[Win-Only] Install Pytorch' if: ${{ inputs.os == 'windows' }} - with: - auto-update-conda: false - activate-environment: comfyui - auto-activate-base: false - environment-file: ${{ inputs.conda_env_file }} - use-only-tar-bz2: true - continue-on-error: true + shell: powershell + run: | + conda env create -f ${{ inputs.conda_env_file }} - name: "[Win] Check conda environment" if: ${{ inputs.os == 'windows' }}