Skip to content

Commit 3f6b99d

Browse files
committed
ci: fix build error
1 parent 0c36519 commit 3f6b99d

File tree

4 files changed

+2
-169
lines changed

4 files changed

+2
-169
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,6 @@ jobs:
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 }}

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: CI
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- '*'
77
workflow_dispatch:
88

99
jobs:

Sources/BuildScripts/XCFrameworkBuild/base.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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? {

docs/Package.test.swift

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)