From 609a0f9f72f77c690ab1e2bc014700b0f2d4301f Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:27:09 +0530 Subject: [PATCH 1/7] Add iOS CI job --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 464d633..185cd3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,3 +25,11 @@ jobs: - name: Build run: | swift build --product xtool + build-ios: + runs-on: macos-15 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: | + xcodebuild build -skipMacroValidation -skipPackagePluginValidation -scheme XKit -destination generic/platform=iOS From 7c3ee193232f214f20b41c9982b5bc075eafca67 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:31:09 +0530 Subject: [PATCH 2/7] dummy iOS failure --- Sources/XKit/DeveloperServices/ASCKey.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/XKit/DeveloperServices/ASCKey.swift b/Sources/XKit/DeveloperServices/ASCKey.swift index 086f7c5..850a74f 100644 --- a/Sources/XKit/DeveloperServices/ASCKey.swift +++ b/Sources/XKit/DeveloperServices/ASCKey.swift @@ -13,6 +13,10 @@ public struct ASCKey: Sendable { } } +#if os(iOS) +#error("Dummy failure") +#endif + actor ASCJWTGenerator { // the duration for which we generate JWTs. // ASC allows a maximum of 20 minutes. From 6b3608d3961806c222f97f66107c33af34c0d03d Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:31:36 +0530 Subject: [PATCH 3/7] Revert "dummy iOS failure" This reverts commit 7c3ee193232f214f20b41c9982b5bc075eafca67. --- Sources/XKit/DeveloperServices/ASCKey.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/XKit/DeveloperServices/ASCKey.swift b/Sources/XKit/DeveloperServices/ASCKey.swift index 850a74f..086f7c5 100644 --- a/Sources/XKit/DeveloperServices/ASCKey.swift +++ b/Sources/XKit/DeveloperServices/ASCKey.swift @@ -13,10 +13,6 @@ public struct ASCKey: Sendable { } } -#if os(iOS) -#error("Dummy failure") -#endif - actor ASCJWTGenerator { // the duration for which we generate JWTs. // ASC allows a maximum of 20 minutes. From f4d01273c81a9fbafbbcdf8bbdb7dc0b367f2c00 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:40:28 +0530 Subject: [PATCH 4/7] Use xcbeautify --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 185cd3f..228f16b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,4 @@ jobs: uses: actions/checkout@v4 - name: Build run: | - xcodebuild build -skipMacroValidation -skipPackagePluginValidation -scheme XKit -destination generic/platform=iOS + xcodebuild build -skipMacroValidation -skipPackagePluginValidation -scheme XKit -destination generic/platform=iOS | xcbeautify From 02a89a702eebb5931486d036008f360ba8403df7 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:43:19 +0530 Subject: [PATCH 5/7] Pipefail --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 228f16b..0c303ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,8 @@ jobs: uses: actions/checkout@v4 - name: Build run: | - xcodebuild build -skipMacroValidation -skipPackagePluginValidation -scheme XKit -destination generic/platform=iOS | xcbeautify + set -o pipefail \ + && xcodebuild build \ + -skipMacroValidation -skipPackagePluginValidation \ + -scheme XKit -destination generic/platform=iOS \ + | xcbeautify From c08ff31b09b58439f9cf43f175d8d806ed708f46 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:43:28 +0530 Subject: [PATCH 6/7] Revert "Revert "dummy iOS failure"" This reverts commit 6b3608d3961806c222f97f66107c33af34c0d03d. --- Sources/XKit/DeveloperServices/ASCKey.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/XKit/DeveloperServices/ASCKey.swift b/Sources/XKit/DeveloperServices/ASCKey.swift index 086f7c5..850a74f 100644 --- a/Sources/XKit/DeveloperServices/ASCKey.swift +++ b/Sources/XKit/DeveloperServices/ASCKey.swift @@ -13,6 +13,10 @@ public struct ASCKey: Sendable { } } +#if os(iOS) +#error("Dummy failure") +#endif + actor ASCJWTGenerator { // the duration for which we generate JWTs. // ASC allows a maximum of 20 minutes. From 46d12fd362c1b6121772ab5852809dd144274b01 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 13 May 2025 12:43:46 +0530 Subject: [PATCH 7/7] Revert "Revert "Revert "dummy iOS failure""" This reverts commit c08ff31b09b58439f9cf43f175d8d806ed708f46. --- Sources/XKit/DeveloperServices/ASCKey.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/XKit/DeveloperServices/ASCKey.swift b/Sources/XKit/DeveloperServices/ASCKey.swift index 850a74f..086f7c5 100644 --- a/Sources/XKit/DeveloperServices/ASCKey.swift +++ b/Sources/XKit/DeveloperServices/ASCKey.swift @@ -13,10 +13,6 @@ public struct ASCKey: Sendable { } } -#if os(iOS) -#error("Dummy failure") -#endif - actor ASCJWTGenerator { // the duration for which we generate JWTs. // ASC allows a maximum of 20 minutes.