@@ -43,93 +43,93 @@ permissions:
4343 contents : read
4444
4545jobs :
46- # macos:
47- # name: xcodebuild (macOS latest)
48- # runs-on: macos-15
49- # strategy:
50- # matrix:
51- # command: [test, ""]
52- # platform: [IOS, MACOS]
53- # xcode: ["26.0", "16.4"]
54- # include:
55- # - { command: test, skip_release: 1 }
56- # steps:
57- # - uses: actions/checkout@v5
58- # - name: Select Xcode ${{ matrix.xcode }}
59- # run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
60- # - name: List available devices
61- # run: xcrun simctl list devices available
62- # - name: Set IgnoreFileSystemDeviceInodeChanges flag
63- # run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
64- # - name: Update mtime for incremental builds
65- # uses: chetan/git-restore-mtime-action@v2
66- # - name: Debug
67- # run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
68- # - name: Release
69- # if: matrix.skip_release != '1'
70- # run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
71- # - name: Install lcov
72- # if: matrix.command == 'test' && matrix.platform == 'IOS' && matrix.xcode == '26.0'
73- # run: brew install lcov
74- # - name: Export code coverage
75- # id: coverage
76- # if: matrix.command == 'test' && matrix.platform == 'IOS' && matrix.xcode == '26.0'
77- # run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" coverage
78- # - uses: coverallsapp/[email protected] 79- # if: steps.coverage.outcome == 'success'
80- # with:
81- # github-token: ${{ secrets.GITHUB_TOKEN }}
82- # file: lcov.info
46+ macos :
47+ name : xcodebuild (macOS latest)
48+ runs-on : macos-15
49+ strategy :
50+ matrix :
51+ command : [test, ""]
52+ platform : [IOS, MACOS]
53+ xcode : ["26.0", "16.4"]
54+ include :
55+ - { command: test, skip_release: 1 }
56+ steps :
57+ - uses : actions/checkout@v5
58+ - name : Select Xcode ${{ matrix.xcode }}
59+ run : sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
60+ - name : List available devices
61+ run : xcrun simctl list devices available
62+ - name : Set IgnoreFileSystemDeviceInodeChanges flag
63+ run : defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
64+ - name : Update mtime for incremental builds
65+ uses : chetan/git-restore-mtime-action@v2
66+ - name : Debug
67+ run : make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
68+ - name : Release
69+ if : matrix.skip_release != '1'
70+ run : make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
71+ - name : Install lcov
72+ if : matrix.command == 'test' && matrix.platform == 'IOS' && matrix.xcode == '26.0'
73+ run : brew install lcov
74+ - name : Export code coverage
75+ id : coverage
76+ if : matrix.command == 'test' && matrix.platform == 'IOS' && matrix.xcode == '26.0'
77+ run : make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" coverage
78+ -
uses :
coverallsapp/[email protected] 79+ if : steps.coverage.outcome == 'success'
80+ with :
81+ github-token : ${{ secrets.GITHUB_TOKEN }}
82+ file : lcov.info
8383
84- # macos-legacy:
85- # name: xcodebuild (macOS legacy)
86- # runs-on: macos-14
87- # strategy:
88- # matrix:
89- # command: [test, ""]
90- # platform: [IOS, MACOS, MAC_CATALYST]
91- # xcode: ["15.4"]
92- # include:
93- # - { command: test, skip_release: 1 }
94- # steps:
95- # - uses: actions/checkout@v5
96- # - name: Select Xcode ${{ matrix.xcode }}
97- # run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
98- # - name: List available devices
99- # run: xcrun simctl list devices available
100- # - name: Cache derived data
101- # uses: actions/cache@v4
102- # with:
103- # path: |
104- # ~/.derivedData
105- # key: |
106- # deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift') }}
107- # restore-keys: |
108- # deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-
109- # - name: Set IgnoreFileSystemDeviceInodeChanges flag
110- # run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
111- # - name: Update mtime for incremental builds
112- # uses: chetan/git-restore-mtime-action@v2
113- # - name: Debug
114- # run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
115- # - name: Release
116- # if: matrix.skip_release != '1'
117- # run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
84+ macos-legacy :
85+ name : xcodebuild (macOS legacy)
86+ runs-on : macos-14
87+ strategy :
88+ matrix :
89+ command : [test, ""]
90+ platform : [IOS, MACOS, MAC_CATALYST]
91+ xcode : ["15.4"]
92+ include :
93+ - { command: test, skip_release: 1 }
94+ steps :
95+ - uses : actions/checkout@v5
96+ - name : Select Xcode ${{ matrix.xcode }}
97+ run : sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
98+ - name : List available devices
99+ run : xcrun simctl list devices available
100+ - name : Cache derived data
101+ uses : actions/cache@v4
102+ with :
103+ path : |
104+ ~/.derivedData
105+ key : |
106+ deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift') }}
107+ restore-keys : |
108+ deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-
109+ - name : Set IgnoreFileSystemDeviceInodeChanges flag
110+ run : defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
111+ - name : Update mtime for incremental builds
112+ uses : chetan/git-restore-mtime-action@v2
113+ - name : Debug
114+ run : make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
115+ - name : Release
116+ if : matrix.skip_release != '1'
117+ run : make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
118118
119- # spm:
120- # runs-on: macos-15
121- # strategy:
122- # matrix:
123- # config: [debug, release]
124- # steps:
125- # - uses: actions/checkout@v5
126- # - uses: actions/cache@v4
127- # with:
128- # path: .build
129- # key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
130- # restore-keys: |
131- # ${{ runner.os }}-spm-
132- # - run: swift build -c ${{ matrix.config }}
119+ spm :
120+ runs-on : macos-15
121+ strategy :
122+ matrix :
123+ config : [debug, release]
124+ steps :
125+ - uses : actions/checkout@v5
126+ - uses : actions/cache@v4
127+ with :
128+ path : .build
129+ key : ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
130+ restore-keys : |
131+ ${{ runner.os }}-spm-
132+ - run : swift build -c ${{ matrix.config }}
133133
134134 linux :
135135 name : Linux
@@ -163,49 +163,49 @@ jobs:
163163 # # tests are not yet passing on Android
164164 # run-tests: false
165165
166- # library-evolution:
167- # name: Library (evolution)
168- # runs-on: macos-15
169- # strategy:
170- # matrix:
171- # xcode: ["16.3"]
172- # steps:
173- # - uses: actions/checkout@v5
174- # - name: Select Xcode ${{ matrix.xcode }}
175- # run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
176- # - name: Build for library evolution
177- # run: make build-for-library-evolution
166+ library-evolution :
167+ name : Library (evolution)
168+ runs-on : macos-15
169+ strategy :
170+ matrix :
171+ xcode : ["16.3"]
172+ steps :
173+ - uses : actions/checkout@v5
174+ - name : Select Xcode ${{ matrix.xcode }}
175+ run : sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
176+ - name : Build for library evolution
177+ run : make build-for-library-evolution
178178
179- # examples:
180- # name: Examples
181- # runs-on: macos-15
182- # steps:
183- # - uses: actions/checkout@v5
184- # - name: Cache derived data
185- # uses: actions/cache@v4
186- # with:
187- # path: ~/.derivedData
188- # key: |
189- # deriveddata-examples-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift', '**/Examples/**/*.swift') }}
190- # restore-keys: |
191- # deriveddata-examples-
192- # - name: Select Xcode 26.0
193- # run: sudo xcode-select -s /Applications/Xcode_26.0.app
194- # - name: Set IgnoreFileSystemDeviceInodeChanges flag
195- # run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
196- # - name: Update mtime for incremental builds
197- # uses: chetan/git-restore-mtime-action@v2
198- # - name: Examples
199- # run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="Examples" XCODEBUILD_ARGUMENT=build xcodebuild
200- # - name: SlackClone
201- # run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="SlackClone" XCODEBUILD_ARGUMENT=build xcodebuild
202- # - name: UserManagement
203- # run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="UserManagement" XCODEBUILD_ARGUMENT=build xcodebuild
179+ examples :
180+ name : Examples
181+ runs-on : macos-15
182+ steps :
183+ - uses : actions/checkout@v5
184+ - name : Cache derived data
185+ uses : actions/cache@v4
186+ with :
187+ path : ~/.derivedData
188+ key : |
189+ deriveddata-examples-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift', '**/Examples/**/*.swift') }}
190+ restore-keys : |
191+ deriveddata-examples-
192+ - name : Select Xcode 26.0
193+ run : sudo xcode-select -s /Applications/Xcode_26.0.app
194+ - name : Set IgnoreFileSystemDeviceInodeChanges flag
195+ run : defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
196+ - name : Update mtime for incremental builds
197+ uses : chetan/git-restore-mtime-action@v2
198+ - name : Examples
199+ run : make DERIVED_DATA_PATH=~/.derivedData SCHEME="Examples" XCODEBUILD_ARGUMENT=build xcodebuild
200+ - name : SlackClone
201+ run : make DERIVED_DATA_PATH=~/.derivedData SCHEME="SlackClone" XCODEBUILD_ARGUMENT=build xcodebuild
202+ - name : UserManagement
203+ run : make DERIVED_DATA_PATH=~/.derivedData SCHEME="UserManagement" XCODEBUILD_ARGUMENT=build xcodebuild
204204
205- # docs:
206- # name: Test docs
207- # runs-on: macos-15
208- # steps:
209- # - uses: actions/checkout@v5
210- # - name: Test docs
211- # run: make test-docs
205+ docs :
206+ name : Test docs
207+ runs-on : macos-15
208+ steps :
209+ - uses : actions/checkout@v5
210+ - name : Test docs
211+ run : make test-docs
0 commit comments