|
| 1 | +name: iOS |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + branches: [main] |
| 8 | + |
| 9 | +jobs: |
| 10 | + ios_test: |
| 11 | + name: Execute tests on iOS |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + os: [macos-15] |
| 16 | + xcode-version: ["16.0"] # Swift 6.0 |
| 17 | + ios-version: ["18.0"] |
| 18 | + include: |
| 19 | + - ios-version: "18.0" |
| 20 | + ios-simulator-name: "iPhone 16 Pro" |
| 21 | + runs-on: ${{ matrix.os }} |
| 22 | + env: |
| 23 | + OPENBOX_WERROR: 1 |
| 24 | + OPENBOX_RENDERBOX: 0 |
| 25 | + OPENBOX_COMPATIBILITY_TEST: 0 |
| 26 | + OPENBOX_USE_LOCAL_DEPS: 1 |
| 27 | + OPENBOX_TARGET_RELEASE: 2024 |
| 28 | + DARWIN_PRIVATE_FRAMEWORKS_TARGET_RELEASE: 2024 |
| 29 | + GH_TOKEN: ${{ github.token }} |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v4 |
| 32 | + - name: Setup Xcode |
| 33 | + uses: maxim-lobanov/setup-xcode@v1 |
| 34 | + with: |
| 35 | + xcode-version: ${{ matrix.xcode-version }} |
| 36 | + - name: Swift version |
| 37 | + run: swift --version |
| 38 | + - name: Set up build environment |
| 39 | + run: Scripts/CI/darwin_setup_build.sh |
| 40 | + shell: bash |
| 41 | + - name: Build in debug mode on iOS |
| 42 | + run: | |
| 43 | + xcodebuild build \ |
| 44 | + -scheme OpenBox-Package \ |
| 45 | + -configuration Debug \ |
| 46 | + -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ |
| 47 | + -derivedDataPath .build-debug \ |
| 48 | + -skipMacroValidation \ |
| 49 | + -skipPackagePluginValidation \ |
| 50 | + OTHER_SWIFT_FLAGS="-warnings-as-errors" |
| 51 | + - name: Build and run tests in debug mode with coverage on iOS Simulator |
| 52 | + run: | |
| 53 | + xcodebuild test \ |
| 54 | + -scheme OpenBox-Package \ |
| 55 | + -configuration Debug \ |
| 56 | + -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ |
| 57 | + -enableCodeCoverage=YES \ |
| 58 | + -derivedDataPath .build-test-debug \ |
| 59 | + -skipPackagePluginValidation \ |
| 60 | + -skipMacroValidation |
| 61 | + # OTHER_SWIFT_FLAGS="-warnings-as-errors" Conflicting options '-warnings-as-errors' and '-suppress-warnings' |
0 commit comments