Label Cleanup (#1730) #4645
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: "Build 🔨" | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: "Build 🔨" | |
| if: github.event.pull_request.draft == false | |
| strategy: | |
| matrix: | |
| scheme: | |
| - "Swiftfin" | |
| - "Swiftfin tvOS" | |
| runs-on: macos-15 | |
| env: | |
| XCODE_VERSION: "16.4" | |
| IOS_VERSION: "18" | |
| TVOS_VERSION: "18" | |
| TVOS_SIMULATOR: "Apple TV 4K" | |
| IPHONE_SIMULATOR: "iPhone 16 Pro" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install SwiftGen | |
| run: brew install swiftgen | |
| - name: Cache Carthage | |
| uses: actions/cache@v4 | |
| id: carthage-cache | |
| with: | |
| path: Carthage | |
| key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | |
| restore-keys: ${{ runner.os }}-carthage- | |
| - name: Update Carthage | |
| run: carthage update --use-xcframeworks --cache-builds | |
| # FIXME: caches would keep failed compiles? | |
| # - name: Cache Swift packages | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: PackageCache | |
| # key: ${{ runner.os }}-${{ matrix.scheme }}-spm-${{ hashFiles('**/Package.resolved') }} | |
| # restore-keys: ${{ runner.os }}-${{ matrix.scheme }}-spm- | |
| - name: Build | |
| uses: nick-fields/retry@v2 | |
| with: | |
| max_attempts: 3 | |
| retry_on: error | |
| timeout_minutes: 60 | |
| command: sudo fastlane buildLane \ | |
| scheme:"\"${{ matrix.scheme }}\"" \ | |
| xcodeVersion:${{ env.XCODE_VERSION }} |