Skip to content

Commit

Permalink
Create 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 94fa5ed commit 59cf7e7
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build macOS

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

jobs:
framework:
name: Build Framework Scheme
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=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 Framework
env:
scheme: RxNetworkKit
destination: ${{ matrix.destination }}
run: |
xcodebuild clean build -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
example:
name: Build Example Scheme
runs-on: macos-13
strategy:
matrix:
destination: ['generic/platform=macOS']
needs: framework

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:
scheme: macOS Example
destination: ${{ matrix.destination }}
run: |
xcodebuild clean build -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit 59cf7e7

Please sign in to comment.