fix: Inconsistent behaviour with Xcode 16 when PBXProject.TargetAttributes is empty
#728
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
| # https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idname | |
| name: XcodeProj | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| concurrency: | |
| group: xcodeproj-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| env: | |
| MISE_EXPERIMENTAL: 1 | |
| jobs: | |
| build: | |
| name: Build (macOS) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Select Xcode 16 | |
| run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer | |
| - uses: jdx/mise-action@v2 | |
| - name: Build | |
| run: mise run build | |
| build-linux: | |
| name: Build (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: jdx/mise-action@v2 | |
| - uses: swift-actions/setup-swift@v2 | |
| - name: Build | |
| run: swift build --configuration release | |
| test: | |
| name: Test (macOS / Xcode) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Select Xcode 16 | |
| run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer | |
| - uses: jdx/mise-action@v2 | |
| - name: Run tests | |
| run: mise run test | |
| test-linux: | |
| name: Test (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: jdx/mise-action@v2 | |
| - uses: swift-actions/setup-swift@v2 | |
| - name: Test | |
| run: swift test | |
| lint: | |
| name: Lint | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Select Xcode 16 | |
| run: sudo xcode-select -switch /Applications/Xcode_16.app/Contents/Developer | |
| - uses: jdx/mise-action@v2 | |
| - run: mise run lint |