Skip to content

Commit

Permalink
🔧 Use local Carthage dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed Dec 27, 2023
1 parent 6d79b18 commit bf48f18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ jobs:
- uses: AckeeCZ/[email protected]
- uses: actions/cache@v3
with:
path: Carthage
path: ../Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Install Tuist
run: bash <(curl -Ls https://install.tuist.io)
- name: Build Carthage dependencies
run: carthage bootstrap --platform iOS --cache-builds --use-xcframeworks
run: |
carthage checkout --project-directory ..
carthage build --no-skip-current --cache-builds --use-xcframeworks --project-directory ..
- name: Generate project
run: tuist fetch && tuist generate
- name: Build project
Expand Down
1 change: 0 additions & 1 deletion ProjectTemplate/Cartfile

This file was deleted.

3 changes: 0 additions & 3 deletions ProjectTemplate/Cartfile.resolved

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import AckeeTemplate
import ProjectDescription

public extension TargetDependency {
static let ackeeTemplate = TargetDependency.carthage("AckeeTemplate")
// In real project you will want the following line
// static let ackeeTemplate = TargetDependency.carthage("AckeeTemplate")
static let ackeeTemplate = TargetDependency.xcframework(path: "../Carthage/Build/AckeeTemplate.xcframework")
}

0 comments on commit bf48f18

Please sign in to comment.