Separate Views & ViewModels into separate files (#54) #18
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-library: | |
| name: Build Library | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.0' | |
| - name: Build Debug | |
| run: | | |
| xcodebuild build \ | |
| -scheme Scyther \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -configuration Debug \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Build Release | |
| run: | | |
| swift build -c release \ | |
| --sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" \ | |
| -Xswiftc -target -Xswiftc arm64-apple-ios16.0-simulator | |
| test: | |
| name: Run Tests | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.0' | |
| - name: Run Tests | |
| run: | | |
| xcodebuild test \ | |
| -scheme Scyther \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -configuration Debug \ | |
| CODE_SIGNING_ALLOWED=NO | |
| build-example-app: | |
| name: Build Example App | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.0' | |
| - name: Build Example App | |
| run: | | |
| xcodebuild build \ | |
| -project Example/ScytherExample.xcodeproj \ | |
| -scheme ScytherExample \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -configuration Debug \ | |
| CODE_SIGNING_ALLOWED=NO |