Skip to content

Commit

Permalink
fix SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Aug 5, 2024
1 parent bb571cc commit d951f53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
needs: generate-matrices
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-matrices.outputs.matrix) }}
matrix: ${{ fromJson(needs.generate-matrices.outputs.matrix).withoutPlatform }}

steps:
- uses: actions/checkout@v4
Expand All @@ -67,7 +67,7 @@ jobs:

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-matrices.outputs.matrix) }}
matrix: ${{ fromJson(needs.generate-matrices.outputs.matrix).withPlatform }}

steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 17 additions & 10 deletions Sources/BuildTool/BuildTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,25 @@ struct BuildAndTestLibrary: ParsableCommand {

struct GenerateMatrices: ParsableCommand {
mutating func run() throws {
let tooling = [
[
"xcode-version": "15.3",
"swift-version": 5,
],
[
"xcode-version": "16-beta",
"swift-version": 6,
],
]

let matrix: [String: Any] = [
"tooling": [
[
"xcode-version": "15.3",
"swift-version": 5,
],
[
"xcode-version": "16-beta",
"swift-version": 6,
],
"without-platform": [
"tooling": tooling,
],
"with-platform": [
"tooling": tooling,
"platform": Platform.allCases.map(\.rawValue),
],
"platform": Platform.allCases.map(\.rawValue),
]

// I’m assuming the JSONSerialization output has no newlines
Expand Down

0 comments on commit d951f53

Please sign in to comment.