Skip to content

Commit 142a0ad

Browse files
committed
Add workaround for failing Python linking in CI
See actions/runner-images#8500
1 parent 1fad3b8 commit 142a0ad

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: .github/workflows/build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
run: sudo Scripts/install-build-dependencies-apt
2323
- name: Install native dependencies (macOS)
2424
if: runner.os == 'macOS'
25-
run: Scripts/install-dependencies-brew
25+
run: |
26+
# Work around an upstream issue with the runner image:
27+
# https://github.com/actions/runner-images/issues/8500
28+
brew upgrade || brew link --overwrite [email protected]
29+
30+
Scripts/install-dependencies-brew
2631
- name: Install Swift
2732
uses: swift-actions/setup-swift@v1
2833
with:

Diff for: Sources/D2Commands/game/chess/pieces/BoardPiece.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
public struct BoardPiece {
22
public let color: ChessRole
3-
public var piece: ChessPiece
3+
public var piece: any ChessPiece
44
public var moveCount: Int
55
public var moved: Bool { moveCount > 0 }
66

77
public var resourcePng: String { (color == .white) ? piece.whiteResourcePng : piece.blackResourcePng }
88

9-
public init(_ color: ChessRole, _ piece: ChessPiece, moveCount: Int = 0) {
9+
public init(_ color: ChessRole, _ piece: any ChessPiece, moveCount: Int = 0) {
1010
self.color = color
1111
self.piece = piece
1212
self.moveCount = moveCount

0 commit comments

Comments
 (0)