Skip to content

Commit 8f553e7

Browse files
fortmarekclaude
andcommitted
Add tuist inspect build to cache upload benchmarks
Added resultBundlePath and tuist inspect build conclude step to cache uploads benchmarks in both workflow files, matching the existing pre-warmed cache configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 86124ee commit 8f553e7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/benchmark-pocket-casts.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
run: |
4141
hyperfine --warmup 1 --runs 3 \
4242
--prepare 'rm -rf ~/Library/Developer/Xcode/DerivedData && xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -resolvePackageDependencies >> ../logs/cache-uploads-prepare.log 2>&1 && ../tuist-setup-temp-project && tuist setup cache' \
43-
'HANDLE="$(cat .tuist-temp-org)_$(cat .tuist-temp-project)" && xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -destination "platform=iOS Simulator,name=iPhone 17" build SWIFT_ENABLE_COMPILE_CACHE="YES" SWIFT_ENABLE_EXPLICIT_MODULES="YES" SWIFT_USE_INTEGRATED_DRIVER="YES" CLANG_ENABLE_COMPILE_CACHE="YES" CLANG_ENABLE_MODULES="YES" COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES="YES" COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS="YES" COMPILATION_CACHE_ENABLE_CACHING="YES" COMPILATION_CACHE_ENABLE_PLUGIN="YES" COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/$HANDLE.sock" >> ../logs/cache-uploads.log 2>&1' \
44-
--conclude '../tuist-cleanup-temp-project'
43+
--conclude 'tuist inspect build && rm -rf /tmp/benchmark-result-bundle.xcresult && ../tuist-cleanup-temp-project' \
44+
'HANDLE="$(cat .tuist-temp-org)_$(cat .tuist-temp-project)" && xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -destination "platform=iOS Simulator,name=iPhone 17" -resultBundlePath /tmp/benchmark-result-bundle.xcresult build SWIFT_ENABLE_COMPILE_CACHE="YES" SWIFT_ENABLE_EXPLICIT_MODULES="YES" SWIFT_USE_INTEGRATED_DRIVER="YES" CLANG_ENABLE_COMPILE_CACHE="YES" CLANG_ENABLE_MODULES="YES" COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES="YES" COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS="YES" COMPILATION_CACHE_ENABLE_CACHING="YES" COMPILATION_CACHE_ENABLE_PLUGIN="YES" COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/$HANDLE.sock" >> ../logs/cache-uploads.log 2>&1'
4545
4646
- name: Upload benchmark logs
4747
uses: actions/upload-artifact@v4
@@ -83,7 +83,8 @@ jobs:
8383
hyperfine --warmup 1 --runs 3 \
8484
--setup 'xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -destination "platform=iOS Simulator,name=iPhone 17" build SWIFT_ENABLE_COMPILE_CACHE="YES" SWIFT_ENABLE_EXPLICIT_MODULES="YES" SWIFT_USE_INTEGRATED_DRIVER="YES" CLANG_ENABLE_COMPILE_CACHE="YES" CLANG_ENABLE_MODULES="YES" COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES="YES" COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS="YES" COMPILATION_CACHE_ENABLE_CACHING="YES" COMPILATION_CACHE_ENABLE_PLUGIN="YES" COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/tuist_pocket-casts.sock" >> ../logs/pre-warmed-setup.log 2>&1' \
8585
--prepare 'rm -rf ~/Library/Developer/Xcode/DerivedData && xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -resolvePackageDependencies >> ../logs/pre-warmed-prepare.log 2>&1' \
86-
'xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -destination "platform=iOS Simulator,name=iPhone 17" build SWIFT_ENABLE_COMPILE_CACHE="YES" SWIFT_ENABLE_EXPLICIT_MODULES="YES" SWIFT_USE_INTEGRATED_DRIVER="YES" CLANG_ENABLE_COMPILE_CACHE="YES" CLANG_ENABLE_MODULES="YES" COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES="YES" COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS="YES" COMPILATION_CACHE_ENABLE_CACHING="YES" COMPILATION_CACHE_ENABLE_PLUGIN="YES" COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/tuist_pocket-casts.sock" >> ../logs/pre-warmed.log 2>&1'
86+
--conclude 'tuist inspect build && rm -rf /tmp/benchmark-result-bundle.xcresult' \
87+
'xcodebuild -project podcasts.xcodeproj -scheme pocketcasts -destination "platform=iOS Simulator,name=iPhone 17" -resultBundlePath /tmp/benchmark-result-bundle.xcresult build SWIFT_ENABLE_COMPILE_CACHE="YES" SWIFT_ENABLE_EXPLICIT_MODULES="YES" SWIFT_USE_INTEGRATED_DRIVER="YES" CLANG_ENABLE_COMPILE_CACHE="YES" CLANG_ENABLE_MODULES="YES" COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES="YES" COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS="YES" COMPILATION_CACHE_ENABLE_CACHING="YES" COMPILATION_CACHE_ENABLE_PLUGIN="YES" COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/tuist_pocket-casts.sock" >> ../logs/pre-warmed.log 2>&1'
8788
8889
- name: Upload benchmark logs
8990
uses: actions/upload-artifact@v4

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
run: |
3838
hyperfine --warmup 1 --runs 10 \
3939
--prepare 'rm -rf ~/Library/Developer/Xcode/DerivedData && ../tuist-setup-temp-project && tuist setup cache' \
40-
--conclude '../tuist-cleanup-temp-project' \
41-
'HANDLE="$(cat .tuist-temp-org)_$(cat .tuist-temp-project)" && xcodebuild -project App.xcodeproj -scheme App -destination "platform=iOS Simulator,name=iPhone 17" build COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/$HANDLE.sock" >> ../logs/benchmark-cache-uploads.log 2>&1'
40+
--conclude 'tuist inspect build && rm -rf /tmp/benchmark-result-bundle.xcresult && ../tuist-cleanup-temp-project' \
41+
'HANDLE="$(cat .tuist-temp-org)_$(cat .tuist-temp-project)" && xcodebuild -project App.xcodeproj -scheme App -destination "platform=iOS Simulator,name=iPhone 17" -resultBundlePath /tmp/benchmark-result-bundle.xcresult build COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/$HANDLE.sock" >> ../logs/benchmark-cache-uploads.log 2>&1'
4242
4343
- name: Upload benchmark logs
4444
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)