Skip to content

Commit 92565a9

Browse files
author
Aegis AI Assistant
committed
ci: replace nonexistent artifact download with fresh build for eval job
1 parent d2481d5 commit 92565a9

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,25 @@ jobs:
190190
with:
191191
submodules: recursive
192192

193-
- name: Setup Swift
194-
uses: swift-actions/setup-swift@v2
195-
with:
196-
swift-version: "6.0"
197-
198-
- name: Download SwiftLM executable
199-
uses: actions/download-artifact@v4
193+
- name: Install Metal Toolchain
194+
run: xcodebuild -downloadComponent MetalToolchain || true
195+
196+
- name: Cache Swift packages
197+
uses: actions/cache@v4
200198
with:
201-
name: SwiftLM-macOS
202-
path: .build/release/
203-
204-
- name: Make executable
205-
run: chmod +x .build/release/SwiftLM
199+
path: .build
200+
key: ${{ runner.os }}-spm-SwiftLM-v2-${{ hashFiles('Package.resolved') }}
201+
restore-keys: |
202+
${{ runner.os }}-spm-SwiftLM-v2-
203+
204+
- name: Clear stale module cache
205+
run: find .build -type d -name ModuleCache -exec rm -rf {} + 2>/dev/null || true
206+
207+
- name: Resolve dependencies
208+
run: swift package resolve
209+
210+
- name: Build (Release)
211+
run: swift build -c release
206212

207213
- name: Install MLX Metal library
208214
run: |

0 commit comments

Comments
 (0)