Skip to content

Commit cdfde6a

Browse files
committed
fix: clear stale SPM cache and resolve deps before plugin build
1 parent 6e0544d commit cdfde6a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-plugin.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ jobs:
7171
- name: Pull LFS files
7272
run: git lfs pull
7373

74+
- name: Resolve SPM dependencies
75+
run: |
76+
# Clear stale SPM cache to avoid module resolution failures
77+
rm -rf ~/.spm-cache/checkouts ~/.spm-cache/artifacts
78+
xcodebuild -project TablePro.xcodeproj \
79+
-target "${{ steps.plugin-info.outputs.target }}" \
80+
-clonedSourcePackagesDirPath "$HOME/.spm-cache" \
81+
-skipPackagePluginValidation \
82+
-resolvePackageDependencies
83+
7484
- name: Build plugin (ARM64)
7585
run: ./scripts/build-plugin.sh "${{ steps.plugin-info.outputs.target }}" arm64
7686

0 commit comments

Comments
 (0)