Skip to content

Commit f9ab586

Browse files
GooolerCopilotsozercan
authored
Fix SPM binary artifact cache conflict on macos-26 runners (#119)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com> Co-authored-by: Sertac Ozercan <sozercan@gmail.com>
1 parent ece3845 commit f9ab586

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/dev-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
- name: Show Swift version
4040
run: swift --version
4141

42+
- name: Clear SPM artifacts cache
43+
run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
44+
4245
- name: Get short SHA
4346
id: slug
4447
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
- name: Show Swift version
4242
run: swift --version
4343

44+
- name: Clear SPM artifacts cache
45+
run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
46+
4447
- name: Run unit tests
4548
run: swift test -q --skip KasetUITests
4649

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Show Swift version
3939
run: swift --version
4040

41+
- name: Clear SPM artifacts cache
42+
run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
43+
4144
- name: Run unit tests
4245
run: swift test -q --skip KasetUITests
4346

@@ -55,6 +58,9 @@ jobs:
5558
- name: Show Xcode version
5659
run: xcodebuild -version
5760

61+
- name: Clear SPM artifacts cache
62+
run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts
63+
5864
- name: Build app bundle for UI tests
5965
env:
6066
KASET_SIGNING: adhoc

0 commit comments

Comments
 (0)