Skip to content

Commit 0351ee5

Browse files
grdsdevclaude
andcommitted
ci: update workflow configuration
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent dd34138 commit 0351ee5

File tree

1 file changed

+58
-151
lines changed

1 file changed

+58
-151
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -125,130 +125,47 @@ jobs:
125125
github-token: ${{ secrets.COVERALLS_TOKEN }}
126126
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ' ') }}
127127

128-
linux:
129-
name: Build on Linux
130-
runs-on: ubuntu-latest
131-
container: ${{ format('swift:{0}', matrix.swift.version) }}
132-
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
133-
strategy:
134-
fail-fast: false
135-
matrix:
136-
swift:
137-
- version: "6.2"
138-
steps:
139-
- uses: actions/checkout@v4
140-
- uses: brightdigit/swift-build@v1.3.0
141-
with:
142-
scheme: Supabase-Package
143-
- uses: sersoft-gmbh/swift-coverage-action@v4
144-
id: coverage-files
145-
continue-on-error: true
146-
with:
147-
fail-on-empty-output: true
148-
- name: Upload Coverage
149-
continue-on-error: true
150-
uses: coverallsapp/github-action@v2.3.6
151-
with:
152-
github-token: ${{ secrets.COVERALLS_TOKEN }}
153-
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ' ') }}
154-
155-
# xcodebuild-latest:
156-
# name: xcodebuild (16.3)
157-
# runs-on: macos-15
128+
# linux:
129+
# name: Build on Linux
130+
# runs-on: ubuntu-latest
131+
# container: ${{ format('swift:{0}', matrix.swift.version) }}
132+
# if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
158133
# strategy:
134+
# fail-fast: false
159135
# matrix:
160-
# command: [test, ""]
161-
# platform: [IOS, MACOS]
162-
# xcode: ["16.3"]
163-
# include:
164-
# - { command: test, skip_release: 1 }
136+
# swift:
137+
# - version: "6.2"
165138
# steps:
166-
# - uses: actions/checkout@v5
167-
# - name: Select Xcode ${{ matrix.xcode }}
168-
# run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
169-
# - name: List available devices
170-
# run: xcrun simctl list devices available
171-
# - name: Set IgnoreFileSystemDeviceInodeChanges flag
172-
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
173-
# - name: Update mtime for incremental builds
174-
# uses: chetan/git-restore-mtime-action@v2
175-
# - name: Debug
176-
# run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
177-
# - name: Release
178-
# if: matrix.skip_release != '1'
179-
# run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
180-
# - name: Install lcov
181-
# if: matrix.command == 'test' && matrix.platform == 'IOS'
182-
# run: brew install lcov
183-
# - name: Export code coverage
184-
# id: coverage
185-
# if: matrix.command == 'test' && matrix.platform == 'IOS'
186-
# run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" coverage
187-
# - uses: coverallsapp/github-action@v2.3.6
188-
# if: steps.coverage.outcome == 'success'
139+
# - uses: actions/checkout@v4
140+
# - uses: brightdigit/swift-build@v1.3.0
189141
# with:
190-
# github-token: ${{ secrets.GITHUB_TOKEN }}
191-
# file: lcov.info
192-
193-
# xcodebuild-legacy:
194-
# name: xcodebuild (15.4)
195-
# runs-on: macos-14
196-
# strategy:
197-
# matrix:
198-
# command: [test, ""]
199-
# platform: [IOS, MACOS, MAC_CATALYST]
200-
# xcode: ["15.4"]
201-
# include:
202-
# - { command: test, skip_release: 1 }
203-
# steps:
204-
# - uses: actions/checkout@v5
205-
# - name: Select Xcode ${{ matrix.xcode }}
206-
# run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
207-
# - name: List available devices
208-
# run: xcrun simctl list devices available
209-
# - name: Cache derived data
210-
# uses: actions/cache@v4
142+
# scheme: Supabase-Package
143+
# - uses: sersoft-gmbh/swift-coverage-action@v4
144+
# id: coverage-files
145+
# continue-on-error: true
211146
# with:
212-
# path: |
213-
# ~/.derivedData
214-
# key: |
215-
# deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift') }}
216-
# restore-keys: |
217-
# deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-
218-
# - name: Set IgnoreFileSystemDeviceInodeChanges flag
219-
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
220-
# - name: Update mtime for incremental builds
221-
# uses: chetan/git-restore-mtime-action@v2
222-
# - name: Debug
223-
# run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" xcodebuild
224-
# - name: Release
225-
# if: matrix.skip_release != '1'
226-
# run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild
227-
228-
# linux:
229-
# name: Linux
230-
# runs-on: ubuntu-latest
231-
# steps:
232-
# - uses: actions/checkout@v5
233-
# - name: "Remove IntegrationTests"
234-
# run: rm -r Tests/IntegrationTests/*
235-
# - name: "Build Swift Package"
236-
# run: swift build
237-
238-
# # android:
239-
# # name: Android
240-
# # runs-on: ubuntu-latest
241-
# # steps:
242-
# # - uses: actions/checkout@v5
243-
# # - name: "Remove IntegrationTests"
244-
# # run: rm -r Tests/IntegrationTests/*
245-
# # - name: "Test Swift Package"
246-
# # uses: skiptools/swift-android-action@v2
247-
# # with:
248-
# # # need to copy over the Tests folder because it contains __Snapshots__
249-
# # copy-files: Tests
250-
# # # tests are not yet passing on Android
251-
# # run-tests: false
147+
# fail-on-empty-output: true
148+
# - name: Upload Coverage
149+
# continue-on-error: true
150+
# uses: coverallsapp/github-action@v2.3.6
151+
# with:
152+
# github-token: ${{ secrets.COVERALLS_TOKEN }}
153+
# files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ' ') }}
154+
155+
android:
156+
name: Android
157+
runs-on: ubuntu-latest
158+
steps:
159+
- uses: actions/checkout@v5
160+
- name: "Remove IntegrationTests"
161+
run: rm -r Tests/IntegrationTests/*
162+
- name: "Test Swift Package"
163+
uses: skiptools/swift-android-action@v2
164+
with:
165+
# need to copy over the Tests folder because it contains __Snapshots__
166+
copy-files: Tests
167+
# tests are not yet passing on Android
168+
run-tests: false
252169

253170
# library-evolution:
254171
# name: Library (evolution)
@@ -263,36 +180,26 @@ jobs:
263180
# - name: Build for library evolution
264181
# run: make build-for-library-evolution
265182

266-
# examples:
267-
# name: Examples
268-
# runs-on: macos-15
269-
# steps:
270-
# - uses: actions/checkout@v5
271-
# - name: Cache derived data
272-
# uses: actions/cache@v4
273-
# with:
274-
# path: ~/.derivedData
275-
# key: |
276-
# deriveddata-examples-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift', '**/Examples/**/*.swift') }}
277-
# restore-keys: |
278-
# deriveddata-examples-
279-
# - name: Select Xcode 16.3
280-
# run: sudo xcode-select -s /Applications/Xcode_16.3.app
281-
# - name: Set IgnoreFileSystemDeviceInodeChanges flag
282-
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
283-
# - name: Update mtime for incremental builds
284-
# uses: chetan/git-restore-mtime-action@v2
285-
# - name: Examples
286-
# run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="Examples" XCODEBUILD_ARGUMENT=build xcodebuild
287-
# - name: SlackClone
288-
# run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="SlackClone" XCODEBUILD_ARGUMENT=build xcodebuild
289-
# - name: UserManagement
290-
# run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="UserManagement" XCODEBUILD_ARGUMENT=build xcodebuild
183+
examples:
184+
name: Examples
185+
runs-on: macos-15
186+
strategy:
187+
matrix:
188+
include:
189+
- scheme: Examples
190+
- scheme: SlackClone
191+
- scheme: UserManagement
192+
steps:
193+
- uses: actions/checkout@v5
194+
- name: Build and Test
195+
uses: brightdigit/swift-build@v1.3.0
196+
with:
197+
scheme: ${{ matrix.scheme }}
291198

292-
# docs:
293-
# name: Test docs
294-
# runs-on: macos-15
295-
# steps:
296-
# - uses: actions/checkout@v5
297-
# - name: Test docs
298-
# run: make test-docs
199+
docs:
200+
name: Test docs
201+
runs-on: macos-15
202+
steps:
203+
- uses: actions/checkout@v5
204+
- name: Test docs
205+
run: make test-docs

0 commit comments

Comments
 (0)