Initial commit #4
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: | |
- '*' | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
xcodebuild-latest: | |
name: xcodebuild (16.2) | |
if: | | |
!contains(github.event.head_commit.message, '[ci skip]') && | |
!contains(github.event.head_commit.message, '[ci skip xcodebuild-latest]') | |
runs-on: macos-15 | |
strategy: | |
matrix: | |
command: [''] | |
platform: [IOS, MACOS] | |
xcode: ['16.2'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode ${{ matrix.xcode }} | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
- name: List available devices | |
run: xcrun simctl list devices available | |
- name: Cache derived data | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.derivedData | |
key: | | |
deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift') }} | |
restore-keys: | | |
deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}- | |
- name: Set IgnoreFileSystemDeviceInodeChanges flag | |
run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES | |
- name: Update mtime for incremental builds | |
uses: chetan/git-restore-mtime-action@v2 | |
- name: Debug | |
run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" WORKSPACE=.github/package.xcworkspace xcodebuild | |
library-evolution: | |
name: Library (evolution) | |
if: | | |
!contains(github.event.head_commit.message, '[ci skip]') && | |
!contains(github.event.head_commit.message, '[ci skip library-evolution]') | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode 16.2 | |
run: sudo xcode-select -s /Applications/Xcode_16.2.app | |
- name: Build for library evolution | |
run: make build-for-library-evolution |