Skip to content

Commit 1b006bb

Browse files
committed
ci: refactor GGUF model path usage in workflow to fix execution on windows and linux-musl
Introduces a new output 'model-path' in the download-model job and updates subsequent steps to use this output. This improves maintainability by centralizing the model path reference.
1 parent deac4cd commit 1b006bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
download-model:
1717
outputs:
1818
cache-key: gguf-${{ steps.meta.outputs.hash }}
19+
model-path: ${{ env.GGUF_MODEL_DIR }}/${{ env.GGUF_MODEL_NAME }}
1920
name: Download GGUF model
2021
runs-on: ubuntu-22.04
2122
steps:
@@ -151,11 +152,11 @@ jobs:
151152
- name: Restore GGUF cache
152153
uses: actions/cache@v4
153154
with:
154-
path: ${{ env.GGUF_MODEL_DIR }}/${{ env.GGUF_MODEL_NAME }}
155+
path: ${{ needs.download-model.outputs.model-path }}
155156
key: ${{ needs.download-model.outputs.cache-key }}
156157

157158
- name: Verify GGUF model
158-
run: test -f "${{ env.GGUF_MODEL_DIR }}/${{ env.GGUF_MODEL_NAME }}"
159+
run: test -f "${{ needs.download-model.outputs.model-path }}"
159160

160161
- name: android setup java
161162
if: matrix.name == 'android-aar'

0 commit comments

Comments
 (0)