Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 11, 2024
1 parent 2ab21da commit da4a180
Showing 1 changed file with 66 additions and 27 deletions.
93 changes: 66 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit da4a180

Please sign in to comment.