Skip to content

Commit

Permalink
wip release configuration
Browse files Browse the repository at this point in the history
i'm not using the matrix because they're different tasks anyway (i.e.
you don’t want to test)
  • Loading branch information
lawrence-forooghian committed Dec 10, 2024
1 parent b436fe5 commit 161f090
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- id: generation-step
run: swift run BuildTool generate-matrices >> $GITHUB_OUTPUT

check-spm:
build-and-test-spm:
name: SPM (Xcode ${{ matrix.tooling.xcodeVersion }})
runs-on: macos-15
needs: generate-matrices
Expand All @@ -94,7 +94,26 @@ jobs:
- run: swift build -Xswiftc -warnings-as-errors
- run: swift test -Xswiftc -warnings-as-errors

check-xcode:
build-release-configuration-spm:
name: SPM, build in release configuration (Xcode ${{ matrix.tooling.xcodeVersion }})
runs-on: macos-15
needs: generate-matrices
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-matrices.outputs.matrix).withoutPlatform }}

steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.tooling.xcodeVersion }}

# https://forums.swift.org/t/warnings-as-errors-for-libraries-frameworks/58393/2
- run: swift build -Xswiftc -warnings-as-errors --configuration release

build-and-test-xcode:
name: Xcode, ${{matrix.platform}} (Xcode ${{ matrix.tooling.xcodeVersion }})
runs-on: macos-15
needs: generate-matrices
Expand Down Expand Up @@ -149,8 +168,9 @@ jobs:
needs:
- lint
- spec-coverage
- check-spm
- check-xcode
- build-and-test-spm
- build-release-configuration-spm
- build-and-test-xcode
- check-example-app

steps:
Expand Down

0 comments on commit 161f090

Please sign in to comment.