Skip to content

Commit fdab8ff

Browse files
committed
fix: remove SPM cache to fix transitive dependency resolution
1 parent 9202471 commit fdab8ff

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

.github/workflows/build-plugin.yml

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

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

scripts/build-plugin.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ build_plugin() {
2323

2424
echo "Building $PLUGIN_TARGET ($arch)..." >&2
2525

26-
# Persistent SPM package cache (speeds up CI on self-hosted runners)
27-
SPM_CACHE_DIR="${HOME}/.spm-cache"
28-
mkdir -p "$SPM_CACHE_DIR"
29-
3026
if ! xcodebuild \
3127
-project "$PROJECT" \
3228
-target "$PLUGIN_TARGET" \
@@ -38,7 +34,6 @@ build_plugin() {
3834
CODE_SIGN_STYLE=Manual \
3935
DEVELOPMENT_TEAM="$TEAM_ID" \
4036
-skipPackagePluginValidation \
41-
-clonedSourcePackagesDirPath "$SPM_CACHE_DIR" \
4237
build 2>&1 | tee "build-plugin-${arch}.log" >&2; then
4338
echo "FATAL: xcodebuild failed for $PLUGIN_TARGET ($arch)" >&2
4439
echo "Check build-plugin-${arch}.log for details" >&2

0 commit comments

Comments
 (0)