From 7ba28a6de5582c595d161e82a2515769ee24c2ae Mon Sep 17 00:00:00 2001 From: dcvz Date: Fri, 12 Apr 2024 18:33:17 +0200 Subject: [PATCH] chore(ci): Add example build workflow --- .github/workflows/validate.yml | 19 ++++++++++++++++++ .../SwiftAudio.xcodeproj/project.pbxproj | 2 +- .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../22AMI.imageset/22AMillion.jpg | Bin .../22AMI.imageset/Contents.json | 0 .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../Assets.xcassets/Contents.json | 0 .../cover.imageset/Contents.json | 0 .../Assets.xcassets/cover.imageset/cover.jpg | Bin .../{SwiftAudio => }/AudioController.swift | 0 .../{SwiftAudio => }/Extensions.swift | 0 .../{SwiftAudio => }/PlayerView.swift | 0 .../{SwiftAudio => }/PlayerViewModel.swift | 0 .../Preview Assets.xcassets/Contents.json | 0 .../{SwiftAudio => }/QueueView.swift | 0 .../{SwiftAudio => }/SwiftAudio.entitlements | 0 .../{SwiftAudio => }/SwiftAudioApp.swift | 0 19 files changed, 20 insertions(+), 1 deletion(-) rename Example/{SwiftAudio => }/SwiftAudio.xcodeproj/project.pbxproj (99%) rename Example/{SwiftAudio => }/SwiftAudio.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename Example/{SwiftAudio => }/SwiftAudio.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/22AMI.imageset/22AMillion.jpg (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/22AMI.imageset/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/cover.imageset/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/Assets.xcassets/cover.imageset/cover.jpg (100%) rename Example/SwiftAudio/{SwiftAudio => }/AudioController.swift (100%) rename Example/SwiftAudio/{SwiftAudio => }/Extensions.swift (100%) rename Example/SwiftAudio/{SwiftAudio => }/PlayerView.swift (100%) rename Example/SwiftAudio/{SwiftAudio => }/PlayerViewModel.swift (100%) rename Example/SwiftAudio/{SwiftAudio => }/Preview Content/Preview Assets.xcassets/Contents.json (100%) rename Example/SwiftAudio/{SwiftAudio => }/QueueView.swift (100%) rename Example/SwiftAudio/{SwiftAudio => }/SwiftAudio.entitlements (100%) rename Example/SwiftAudio/{SwiftAudio => }/SwiftAudioApp.swift (100%) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 29f59f7..1177166 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -27,3 +27,22 @@ jobs: uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} + build-example: + runs-on: blaze/macos-14 + strategy: + matrix: + target: [iOS] + include: + - target: iOS + destination: '-destination "platform=iOS Simulator,name=Any iOS Simulator Device"' + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Setup Environment + uses: pkgxdev/setup@v2 + with: + +: tuist.io/xcbeautify + - name: Build App + run: |- + cd Example + set -o pipefail && xcodebuild build -project SwiftAudio.xcodeproj -scheme SwiftAudio ${{ matrix.destination }} | xcbeautify --renderer github-actions diff --git a/Example/SwiftAudio/SwiftAudio.xcodeproj/project.pbxproj b/Example/SwiftAudio.xcodeproj/project.pbxproj similarity index 99% rename from Example/SwiftAudio/SwiftAudio.xcodeproj/project.pbxproj rename to Example/SwiftAudio.xcodeproj/project.pbxproj index 694f7fb..5cdf3e7 100644 --- a/Example/SwiftAudio/SwiftAudio.xcodeproj/project.pbxproj +++ b/Example/SwiftAudio.xcodeproj/project.pbxproj @@ -24,7 +24,7 @@ 9B8819602BC8657B00E20DCE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 9B8819622BC8657B00E20DCE /* SwiftAudio.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftAudio.entitlements; sourceTree = ""; }; 9B8819642BC8657B00E20DCE /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 9B88196B2BC865E100E20DCE /* SwiftAudioEx */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftAudioEx; path = ../..; sourceTree = ""; }; + 9B88196B2BC865E100E20DCE /* SwiftAudioEx */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftAudioEx; path = ..; sourceTree = ""; }; 9B88196C2BC866A300E20DCE /* AudioController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AudioController.swift; sourceTree = ""; }; 9B88196F2BC866A300E20DCE /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = ""; }; 9B8819702BC866A300E20DCE /* PlayerView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayerView.swift; sourceTree = ""; }; diff --git a/Example/SwiftAudio/SwiftAudio.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/SwiftAudio.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Example/SwiftAudio/SwiftAudio.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Example/SwiftAudio.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Example/SwiftAudio/SwiftAudio.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/SwiftAudio.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from Example/SwiftAudio/SwiftAudio.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to Example/SwiftAudio.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/22AMI.imageset/22AMillion.jpg b/Example/SwiftAudio/Assets.xcassets/22AMI.imageset/22AMillion.jpg similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/22AMI.imageset/22AMillion.jpg rename to Example/SwiftAudio/Assets.xcassets/22AMI.imageset/22AMillion.jpg diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/22AMI.imageset/Contents.json b/Example/SwiftAudio/Assets.xcassets/22AMI.imageset/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/22AMI.imageset/Contents.json rename to Example/SwiftAudio/Assets.xcassets/22AMI.imageset/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/AccentColor.colorset/Contents.json b/Example/SwiftAudio/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/AccentColor.colorset/Contents.json rename to Example/SwiftAudio/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/SwiftAudio/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Example/SwiftAudio/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/Contents.json b/Example/SwiftAudio/Assets.xcassets/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/Contents.json rename to Example/SwiftAudio/Assets.xcassets/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/cover.imageset/Contents.json b/Example/SwiftAudio/Assets.xcassets/cover.imageset/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/cover.imageset/Contents.json rename to Example/SwiftAudio/Assets.xcassets/cover.imageset/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/Assets.xcassets/cover.imageset/cover.jpg b/Example/SwiftAudio/Assets.xcassets/cover.imageset/cover.jpg similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Assets.xcassets/cover.imageset/cover.jpg rename to Example/SwiftAudio/Assets.xcassets/cover.imageset/cover.jpg diff --git a/Example/SwiftAudio/SwiftAudio/AudioController.swift b/Example/SwiftAudio/AudioController.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/AudioController.swift rename to Example/SwiftAudio/AudioController.swift diff --git a/Example/SwiftAudio/SwiftAudio/Extensions.swift b/Example/SwiftAudio/Extensions.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Extensions.swift rename to Example/SwiftAudio/Extensions.swift diff --git a/Example/SwiftAudio/SwiftAudio/PlayerView.swift b/Example/SwiftAudio/PlayerView.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/PlayerView.swift rename to Example/SwiftAudio/PlayerView.swift diff --git a/Example/SwiftAudio/SwiftAudio/PlayerViewModel.swift b/Example/SwiftAudio/PlayerViewModel.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/PlayerViewModel.swift rename to Example/SwiftAudio/PlayerViewModel.swift diff --git a/Example/SwiftAudio/SwiftAudio/Preview Content/Preview Assets.xcassets/Contents.json b/Example/SwiftAudio/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from Example/SwiftAudio/SwiftAudio/Preview Content/Preview Assets.xcassets/Contents.json rename to Example/SwiftAudio/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/Example/SwiftAudio/SwiftAudio/QueueView.swift b/Example/SwiftAudio/QueueView.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/QueueView.swift rename to Example/SwiftAudio/QueueView.swift diff --git a/Example/SwiftAudio/SwiftAudio/SwiftAudio.entitlements b/Example/SwiftAudio/SwiftAudio.entitlements similarity index 100% rename from Example/SwiftAudio/SwiftAudio/SwiftAudio.entitlements rename to Example/SwiftAudio/SwiftAudio.entitlements diff --git a/Example/SwiftAudio/SwiftAudio/SwiftAudioApp.swift b/Example/SwiftAudio/SwiftAudioApp.swift similarity index 100% rename from Example/SwiftAudio/SwiftAudio/SwiftAudioApp.swift rename to Example/SwiftAudio/SwiftAudioApp.swift