Skip to content

Commit

Permalink
update build-ios.yml + build-macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
loay-ashraf committed Aug 24, 2023
1 parent ee74435 commit 3c228a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
framework-ios-simulator:
name: Build Framework For iOS Simulator
runs-on: macos-13
# strategy:
# matrix:
# destination: ['generic/platform=iOS Simulator',
# 'generic/platform=iOS']

steps:
- name: Checkout
Expand All @@ -35,10 +31,6 @@ jobs:
framework-ios:
name: Build Framework For iOS Device
runs-on: macos-13
# strategy:
# matrix:
# destination: ['generic/platform=iOS Simulator',
# 'generic/platform=iOS']

steps:
- name: Checkout
Expand All @@ -58,10 +50,6 @@ jobs:
example-ios-simulator:
name: Build Example For iOS Simulator
runs-on: macos-13
# strategy:
# matrix:
# destination: ['generic/platform=iOS Simulator',
# 'generic/platform=iOS']
needs: framework-ios-simulator

steps:
Expand All @@ -82,10 +70,6 @@ jobs:
example-ios:
name: Build Example For iOS Device
runs-on: macos-13
# strategy:
# matrix:
# destination: ['generic/platform=iOS Simulator',
# 'generic/platform=iOS']
needs: framework-ios

steps:
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ on:
- '**'

jobs:
framework:
framework-macos:
name: Build Framework Scheme
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=macOS']

steps:
- name: Checkout
Expand All @@ -27,16 +24,14 @@ jobs:
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: ${{ matrix.destination }}
destination: generic/platform=macOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
example:
example-macos:
name: Build Example Scheme
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=macOS']
needs: framework
needs: framework-macos

steps:
- name: Checkout
Expand All @@ -49,7 +44,7 @@ jobs:
env:
workspace: RxNetworkKit.xcworkspace
scheme: macOS Example
destination: ${{ matrix.destination }}
destination: generic/platform=macOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit 3c228a7

Please sign in to comment.