Skip to content

Commit

Permalink
Merge pull request #1 from oversizedev/develop
Browse files Browse the repository at this point in the history
Update CI and delete CloudKit services
  • Loading branch information
aromanov91 authored Nov 10, 2024
2 parents daed089 + 30e115a commit d67eef6
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 556 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,51 @@
name: CI - Push
name: CI

on:
push:
branches: ["main"]
branches:
- '**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

build-swiftpm:
name: Build packages
name: Build SwiftPM
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main
strategy:
matrix:
packages: [OversizeServices, OversizeHealthService, OversizeCloudKitService, OversizeStoreService, OversizeLocationService, OversizeCalendarService, OversizeContactsService, OversizeNotificationService, OversizeFileManagerService]
packages:
- OversizeServices
- OversizeStoreService
- OversizeLocationService
- OversizeCalendarService
- OversizeContactsService
- OversizeNotificationService
- OversizeFileManagerService
destination:
- platform=iOS Simulator,name=iPhone 16,OS=18.1
- platform=watchOS Simulator,name=Apple Watch SE (40mm) (2nd generation),OS=11.1
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=18.1
- platform=macOS,arch=arm64

with:
package: ${{ matrix.packages }}
destination: ${{ matrix.destination }}
secrets: inherit

# tests:
# name: Test
# needs: build-swiftpm
# uses: oversizedev/GithubWorkflows/.github/workflows/test.yml@main
# secrets: inherit
# tests:
# name: Test
# needs: build-swiftpm
# uses: oversizedev/GithubWorkflows/.github/workflows/test.yml@main
# secrets: inherit

bump:
name: Bump version
needs: build-swiftpm
if: github.ref == 'refs/heads/main'
uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main
secrets: inherit

17 changes: 4 additions & 13 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ let developmentDependencies: [PackageDescription.Package.Dependency] = [
.package(url: "https://github.com/hmlongco/Factory.git", .upToNextMajor(from: "2.1.3")),
]

var dependencies: [PackageDescription.Package.Dependency] = developmentDependencies
var dependencies: [PackageDescription.Package.Dependency] = remoteDependencies

if ProcessInfo.processInfo.environment["BUILD_MODE"] == "PRODUCTION" {
dependencies = remoteDependencies
if ProcessInfo.processInfo.environment["BUILD_MODE"] == "DEV" {
dependencies = developmentDependencies
}

let package = Package(
Expand All @@ -35,7 +35,6 @@ let package = Package(
],
products: [
.library(name: "OversizeHealthService", targets: ["OversizeHealthService"]),
.library(name: "OversizeCloudKitService", targets: ["OversizeCloudKitService"]),
.library(name: "OversizeServices", targets: ["OversizeServices"]),
.library(name: "OversizeStoreService", targets: ["OversizeStoreService"]),
.library(name: "OversizeLocationService", targets: ["OversizeLocationService"]),
Expand All @@ -44,7 +43,7 @@ let package = Package(
.library(name: "OversizeNotificationService", targets: ["OversizeNotificationService"]),
.library(name: "OversizeFileManagerService", targets: ["OversizeFileManagerService"]),
],
dependencies: dependencies,
dependencies: remoteDependencies,
targets: [
.target(
name: "OversizeServices",
Expand Down Expand Up @@ -94,14 +93,6 @@ let package = Package(
.product(name: "Factory", package: "Factory"),
]
),
.target(
name: "OversizeCloudKitService",
dependencies: [
.product(name: "OversizeCore", package: "OversizeCore"),
.product(name: "OversizeModels", package: "OversizeModels"),
.product(name: "Factory", package: "Factory"),
]
),
.target(
name: "OversizeStoreService",
dependencies: [
Expand Down
70 changes: 0 additions & 70 deletions Sources/OversizeCloudKitService/AssetsCloudKitService.swift

This file was deleted.

172 changes: 0 additions & 172 deletions Sources/OversizeCloudKitService/DressWeatherCloudKitService.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Sources/OversizeCloudKitService/Models/AssetIcon.swift

This file was deleted.

Loading

0 comments on commit d67eef6

Please sign in to comment.