Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
description: "Whether to include Pulse in cache (false for production builds)"
required: false
default: "true"
skip-spm-cache:
description: "Skip SPM cache for release builds to avoid simulator artifacts"
required: false
default: "false"

runs:
using: "composite"
Expand Down Expand Up @@ -58,6 +62,7 @@ runs:

- name: 📦 Cache SPM dependencies
id: spm-cache
if: inputs.skip-spm-cache != 'true'
uses: actions/cache@v4
with:
path: Tuist/.build
Expand All @@ -66,25 +71,27 @@ runs:
tuist-spm-${{ runner.os }}-

- name: 🛠 Install tuist dependencies
if: steps.spm-cache.outputs.cache-hit != 'true'
if: inputs.skip-spm-cache == 'true' || steps.spm-cache.outputs.cache-hit != 'true'
shell: bash
run: tuist install

- name: 📊 SPM cache status
shell: bash
run: |
if [ "${{ steps.spm-cache.outputs.cache-hit }}" == "true" ]; then
if [ "${{ inputs.skip-spm-cache }}" == "true" ]; then
echo "⏭️ SPM cache SKIPPED (release build)"
elif [ "${{ steps.spm-cache.outputs.cache-hit }}" == "true" ]; then
echo "✅ SPM cache HIT - skipping tuist cache warm up"
else
echo "❌ SPM cache MISS - will build dependencies"
fi

- name: 🏗 Warm up external dependencies (with Pulse)
if: steps.spm-cache.outputs.cache-hit != 'true' && inputs.include-pulse == 'true'
if: (inputs.skip-spm-cache == 'true' || steps.spm-cache.outputs.cache-hit != 'true') && inputs.include-pulse == 'true'
shell: bash
run: tuist cache ComposableArchitecture Kingfisher Pulse KakaoSDKAuth KakaoSDKCommon GoogleSignIn GoogleSignInSwift

- name: 🏗 Warm up external dependencies (without Pulse)
if: steps.spm-cache.outputs.cache-hit != 'true' && inputs.include-pulse != 'true'
if: (inputs.skip-spm-cache == 'true' || steps.spm-cache.outputs.cache-hit != 'true') && inputs.include-pulse != 'true'
shell: bash
run: tuist cache ComposableArchitecture Kingfisher KakaoSDKAuth KakaoSDKCommon GoogleSignIn GoogleSignInSwift
9 changes: 1 addition & 8 deletions .github/workflows/cd_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ jobs:
with:
keychain-name: ${{ secrets.KEYCHAIN_NAME }}
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}

- name: 📦 Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: deriveddata-${{ runner.os }}-${{ hashFiles('Tuist/Package.resolved') }}
restore-keys: |
deriveddata-${{ runner.os }}-
skip-spm-cache: "true"

- name: 🚀 Deploy to TestFlight (TwixDebug)
env:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/cd_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ jobs:
keychain-name: ${{ secrets.KEYCHAIN_NAME }}
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
include-pulse: "false"

- name: 📦 Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: deriveddata-${{ runner.os }}-${{ hashFiles('Tuist/Package.resolved') }}
restore-keys: |
deriveddata-${{ runner.os }}-
skip-spm-cache: "true"

- name: 🚀 Deploy to App Store Connect (Twix)
env:
Expand Down
2 changes: 1 addition & 1 deletion Projects/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private let commonInfoPlist: [String: Plist.Value] = Project.Environment.InfoPli
"DEEPLINK_HOST": "$(DEEPLINK_HOST)",
"API_BASE_URL": "$(API_BASE_URL)",
"NSCameraUsageDescription": "UseCamera",
"CFBundleShortVersionString": "1.1.0"
"CFBundleShortVersionString": "1.1.1"
], uniquingKeysWith: { current, _ in current })

private let commonDependencies: [TargetDependency] = [
Expand Down
Loading