Commit c8763eb 1 parent 30f8006 commit c8763eb Copy full SHA for c8763eb
File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 43
43
44
44
- name : Set Model Cache Directory
45
45
run : |
46
- echo "MODEL_CACHE_DIR=./fastembed_cache" >> $GITHUB_ENV
46
+ if [[ "$RUNNER_OS" == "Windows" ]]; then
47
+ echo "MODEL_CACHE_DIR=$TEMP/fastembed_cache" >> $GITHUB_ENV
48
+ elif [[ "$RUNNER_OS" == "MacOS" ]]; then
49
+ echo "MODEL_CACHE_DIR=/private/var/tmp/fastembed_cache" >> $GITHUB_ENV
50
+ else
51
+ echo "MODEL_CACHE_DIR=/tmp/fastembed_cache" >> $GITHUB_ENV
52
+ fi
47
53
shell : bash
48
54
49
55
- name : Cache Model Files
69
75
shell : bash
70
76
- name : List Cached Models (MacOS) tmp
71
77
if : runner.os == 'MacOS'
72
- run : ls -lah /var/folders/
73
- shell : bash
74
-
75
- - name : List Cached Models
76
- run : |
77
- if [[ "$RUNNER_OS" == "Windows" ]]; then
78
- dir "${{ env.MODEL_CACHE_DIR }}"
79
- else
80
- ls -lah "${{ env.MODEL_CACHE_DIR }}"
81
- fi
78
+ run : ls -lah /private/var/tmp/
82
79
shell : bash
You can’t perform that action at this time.
0 commit comments