File tree Expand file tree Collapse file tree 4 files changed +2
-169
lines changed
Sources/BuildScripts/XCFrameworkBuild Expand file tree Collapse file tree 4 files changed +2
-169
lines changed Original file line number Diff line number Diff line change 9090 rm -rf ./dist/release/libmpv
9191 rm -rf ./dist/release/xcframework
9292
93- - name : Test Build
94- run : |
95- rm -rf ./Package.swift
96- cp -f ./dist/release/Package.test.swift ./Package.swift
97-
98- xcodebuild -resolvePackageDependencies \
99- -project Demo/Demo-macOS/Demo-macOS.xcodeproj \
100- -scheme Demo-macOS
101-
102- xcodebuild -project Demo/Demo-macOS/Demo-macOS.xcodeproj \
103- -scheme Demo-macOS \
104- -configuration Release \
105- CODE_SIGN_IDENTITY="-" \
106- CODE_SIGNING_REQUIRED=NO \
107- CODE_SIGNING_ALLOWED=NO \
108- build
109-
11093 - name : Build LGPL version
11194 run : |
11295 make build version=${{ env.RELEASE_VERSION }}
Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches :
6- - main
5+ tags :
6+ - ' * '
77 workflow_dispatch :
88
99jobs :
Original file line number Diff line number Diff line change @@ -775,27 +775,6 @@ class BaseBuild {
775775 """ )
776776 try ! str. write ( toFile: packageFile. path, atomically: true , encoding: . utf8)
777777 }
778-
779- // for github action test
780- let templateForTest = URL . currentDirectory + [ " ../docs/Package.test.swift " ]
781- if FileManager . default. fileExists ( atPath: templateForTest. path) {
782- let packageFileForTest = releaseDirPath + " Package.test.swift "
783- if !FileManager. default. fileExists ( atPath: packageFileForTest. path) {
784- try ! FileManager . default. copyItem ( at: templateForTest, to: packageFileForTest)
785- }
786- if let data = FileManager . default. contents ( atPath: packageFileForTest. path) , var str = String ( data: data, encoding: . utf8) {
787- let placeholderChars = " //AUTO_GENERATE_TARGETS_END// "
788- str = str. replacingOccurrences ( of:
789- """
790- \( placeholderChars)
791- """ , with:
792- """
793- \( dependencyTargetContent)
794- \( placeholderChars)
795- """ )
796- try ! str. write ( toFile: packageFileForTest. path, atomically: true , encoding: . utf8)
797- }
798- }
799778 }
800779
801780 func getFirstSuccessPlatform( ) -> PlatformType ? {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments