Skip to content

Commit

Permalink
try to fix carthage
Browse files Browse the repository at this point in the history
  • Loading branch information
3a4oT committed Dec 2, 2020
1 parent a60a080 commit af2fe8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.2
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,19 @@ cocoapods-lint-other-subspecs)

carthage|all)
echo "Verifying carthage works."
## carthage workaround to slip spm based project
spm_example_project="examples/ASIGListKitSPM/Sample.xcodeproj"
carthge_example_project_workaround="examples/ASIGListKitSPM/Sample.carthageSkip"

# apply workaround
mv $spm_example_project $carthge_example_project_workaround

# carthage job
set -o pipefail && carthage update && carthage build --no-skip-current

#revert back workaround
mv $carthge_example_project_workaround $spm_example_project

success="1"
;;

Expand Down

0 comments on commit af2fe8c

Please sign in to comment.