Skip to content

Commit

Permalink
add workflow files outside of folders
Browse files Browse the repository at this point in the history
  • Loading branch information
loay-ashraf committed Aug 24, 2023
1 parent 1d22a1f commit 3d06413
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Build iOS

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
framework-ios-simulator:
name: Build Framework For iOS Simulator
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=iOS Simulator
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
framework-ios:
name: Build Framework For iOS Device
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=iOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
example-ios-simulator:
name: Build Example For iOS Simulator
runs-on: macos-13
needs: framework-ios-simulator

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
scheme: iOS Example
destination: generic/platform=iOS Simulator
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
example-ios:
name: Build Example For iOS Device
runs-on: macos-13
needs: framework-ios

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
scheme: iOS Example
destination: generic/platform=iOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
50 changes: 50 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build macOS

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
framework-macos:
name: Build Framework For macOS
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=macOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
example-macos:
name: Build Example For macOS
runs-on: macos-13
needs: framework-macos

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
scheme: macOS Example
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]}
File renamed without changes.

0 comments on commit 3d06413

Please sign in to comment.