Skip to content

Commit 0b18205

Browse files
hypcompnerd
authored andcommitted
GHA: add a workaround for old Swift driver
workaround the issue with missing new swift driver when building swift testing for android by disabling CMP0157.
1 parent 105a9e4 commit 0b18205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,9 @@ jobs:
21172117
""
21182118
}
21192119
2120+
# Workaround the issue of not using the new Swift driver , that forces us to disable the CMP0157 policy.
2121+
(Get-Content -Path "${{ github.workspace }}\SourceCache\swift-testing\CMakeLists.txt") -replace 'cmake_policy\(SET CMP0157 NEW\)', 'cmake_policy(SET CMP0157 OLD)' | Set-Content -Path "${{ github.workspace }}\SourceCache\swift-testing\CMakeLists.txt"
2122+
21202123
$CMAKE_CPU = if ("${{ matrix.cpu }}" -eq "armv7") { "armv7-a" } else { "${{ matrix.cpu }}" }
21212124
21222125
cmake -B ${{ github.workspace }}/BinaryCache/testing `

0 commit comments

Comments
 (0)