From 85374f914c3089f641be14fb0a1e7918b59da3ab Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Sun, 1 Oct 2023 14:09:28 +0300 Subject: [PATCH] Update build-example.yml --- .github/workflows/build-example.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index 4036460..66f7cd2 100644 --- a/.github/workflows/build-example.yml +++ b/.github/workflows/build-example.yml @@ -14,8 +14,35 @@ env: OSXSCHEME: Example TVSCHEME: Example WATCHSCHEME: Example + PACKAGE_NAME: OversizeUI jobs: + + build-package: + + runs-on: macOS-13 + + name: Package build + + steps: + - uses: actions/checkout@v3 + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode_14.4.app && /usr/bin/xcodebuild -version + + - name: Build and run tests + run: xcodebuild clean build -scheme ${{ env.PACKAGE_NAME }} -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' | xcpretty && exit ${PIPESTATUS[0]} + + # swiftpm: + # runs-on: macos-14 + + # steps: + # - uses: maxim-lobanov/setup-xcode@v1.1 + # with: + # xcode-version: "15.0" + # - uses: actions/checkout@v2 + # - name: Build Package + # run: xcodebuild -scheme ${{ env.PACKAGE_NAME }} -destination 'platform=iOS Simulator,name=iPhone 8,OS=16.2' | xcpretty + build-iOS-example: name: Build iOS examples runs-on: macOS-latest