-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94fa5ed
commit 59cf7e7
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]} | ||