From da4a18041688613074e8f62d8c7f5c92bbe0ae97 Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Mon, 11 Nov 2024 22:23:53 +0300 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 93 ++++++++++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da21a6a..b6221dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,40 +11,78 @@ concurrency: cancel-in-progress: true jobs: - build-swiftpm: - name: Build SwiftPM - uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main - strategy: - matrix: - packages: - - OversizeKit - - OversizeCalendarKit - - OversizeContactsKit - - OversizeLocationKit - - OversizeNoticeKit - - OversizeNotificationKit - - OversizeOnboardingKit - - OversizePhotoKit - destination: - - platform=iOS Simulator,name=iPhone 16,OS=18.1 - - platform=macOS,arch=arm64 - with: - package: ${{ matrix.packages }} - destination: ${{ matrix.destination }} + build-oversize-kit: + name: Build OversizeKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeKit + secrets: inherit + + build-calendar-kit: + name: Build CalendarKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeCalendarKit + secrets: inherit + + build-contacts-kit: + name: Build OversizeContactsKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeContactsKit + secrets: inherit + + build-location-kit: + name: Build LocationKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeLocationKit + secrets: inherit + + build-notice-kit: + name: Build NoticeKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeNoticeKit + secrets: inherit + + build-notification-kit: + name: Build NotificationKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeNotificationKit + secrets: inherit + + build-onboarding-kit: + name: Build OnboardingKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizeOnboardingKit + secrets: inherit + + build-photo-kit: + name: Build PhotoKit + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main + with: + package: OversizePhotoKit secrets: inherit build-example: name: Build Example - needs: build-swiftpm + needs: + - build-oversize-kit + - build-calendar-kit + - build-contacts-kit + - build-location-kit + - build-notice-kit + - build-notification-kit + - build-onboarding-kit + - build-photo-kit uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main - strategy: - matrix: - destination: - - platform=iOS Simulator,name=iPhone 16,OS=18.1 with: path: AppExample/Example scheme: Example - destination: ${{ matrix.destination }} + destination: platform=iOS Simulator,name=iPhone 16,OS=18.1 secrets: inherit # tests: @@ -55,7 +93,8 @@ jobs: bump: name: Bump version - needs: build-example + needs: + - build-example if: github.ref == 'refs/heads/main' uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main secrets: inherit