Simplify/align macro overloads #246
Workflow file for this run
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: iOS Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| check-changes: | |
| name: Check for Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changed: ${{ steps.filter.outputs.changed }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| changed: | |
| - '.github/workflows/ios-tests.yml' | |
| - '**/*.swift' | |
| build-ios-matrix: | |
| name: iOS Matrix | |
| if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }} | |
| needs: check-changes | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| xcode: [ "16.3", "16.4" ] # "26.0" is broken with xcodebuild test | |
| os: [ macos-15 ] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build and Test | |
| run: | | |
| set -o pipefail && \ | |
| NSUnbufferedIO=YES \ | |
| xcrun xcodebuild test -workspace . -scheme Vexil -skipMacroValidation -destination "platform=iOS Simulator,name=iPhone 16e" \ | |
| | xcbeautify --renderer github-actions | |
| build-ios: | |
| runs-on: ubuntu-latest | |
| name: iOS Tests | |
| if: ${{ always() && needs.check-changes.outputs.changed == 'true' }} | |
| needs: [ build-ios-matrix, check-changes ] | |
| steps: | |
| - name: Check build matrix status | |
| if: ${{ needs.build-ios-matrix.result != 'success' }} | |
| run: exit 1 |