Skip to content

Commit

Permalink
👷Add xcodebuild in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Apr 29, 2021
1 parent a1f3748 commit 6372c18
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ jobs:
fetch-depth: 1
- name: libxml
run: brew install libxml2
- name: Swift build
- name: Swift build macOS
run: |
swift build
- name: Xcode build macOS
run: |
xcodebuild -scheme "OAuthSwiftMacOS"
- name: Swift build iOS
run: |
sdk=`xcrun -sdk iphonesimulator -show-sdk-path`
sdkVersion=`echo $sdk | sed -E 's/.*iPhoneSimulator(.*)\.sdk/\1/'`
swift build -Xswiftc "-sdk" -Xswiftc "$sdk" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios$sdkVersion-simulator"
- name: Xcode build iOS
run: |
xcodebuild -scheme "OAuthSwift"
4 changes: 4 additions & 0 deletions OAuthSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
01611E91220CB798003B1E60 /* URLConvertible.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01611E90220CB798003B1E60 /* URLConvertible.swift */; };
0738BC6B1EBA755C000FA2F2 /* OAuthSwiftCredentialTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0738BC6A1EBA755C000FA2F2 /* OAuthSwiftCredentialTests.swift */; };
1735E2ED24C8C6E700B1CDBF /* OAuthLogProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F2BD6BA2442549D00668073 /* OAuthLogProtocol.swift */; };
484489A9263AA42C0055AC4B /* OAuthLogProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F2BD6BA2442549D00668073 /* OAuthLogProtocol.swift */; };
484489B0263AA42D0055AC4B /* OAuthLogProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F2BD6BA2442549D00668073 /* OAuthLogProtocol.swift */; };
48942B5B2085DB5F00376BFA /* URLTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48942B5A2085DB5F00376BFA /* URLTests.swift */; };
6053EF6F1E93821400EB28B3 /* NotificationCenter+OAuthSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6053EF6E1E93821400EB28B3 /* NotificationCenter+OAuthSwift.swift */; };
6053EF701E93832400EB28B3 /* NotificationCenter+OAuthSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6053EF6E1E93821400EB28B3 /* NotificationCenter+OAuthSwift.swift */; };
Expand Down Expand Up @@ -1018,6 +1020,7 @@
C40890CD1C11B38000E3146A /* OAuthSwiftURLHandlerType.swift in Sources */,
C44685AF236CA6C300272231 /* SFAuthenticationURLHandler.swift in Sources */,
C44685B4236CA6DB00272231 /* SafariURLHandler.swift in Sources */,
484489B0263AA42D0055AC4B /* OAuthLogProtocol.swift in Sources */,
C40890D01C11B38000E3146A /* SHA1.swift in Sources */,
C40890D41C11B38700E3146A /* String+OAuthSwift.swift in Sources */,
C40890DB1C11D48300E3146A /* OAuthSwift.swift in Sources */,
Expand Down Expand Up @@ -1093,6 +1096,7 @@
C4B6EE281BF74CF400443596 /* OAuthSwiftClient.swift in Sources */,
C4B6EE291BF74CF400443596 /* OAuthSwiftCredential.swift in Sources */,
C44685A4236CA62000272231 /* OAuthSwiftURLHandlerProxy.swift in Sources */,
484489A9263AA42C0055AC4B /* OAuthLogProtocol.swift in Sources */,
C4B6EE2A1BF74CF400443596 /* OAuthSwiftHTTPRequest.swift in Sources */,
C44685B8236CA74600272231 /* ASWebAuthenticationURLHandler.swift in Sources */,
C446859F236CA5F200272231 /* OAuthSwiftOpenURLExternally.swift in Sources */,
Expand Down

0 comments on commit 6372c18

Please sign in to comment.