From 59cf7e79a9bdd85aab40e4c3549ff4c623386c39 Mon Sep 17 00:00:00 2001 From: Loay Ashraf Date: Thu, 24 Aug 2023 23:32:59 +0300 Subject: [PATCH] Create build-macos.yml --- .github/workflows/build-macos.yml | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/build-macos.yml diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml new file mode 100644 index 0000000..909cad9 --- /dev/null +++ b/.github/workflows/build-macos.yml @@ -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]} +