Skip to content

Commit

Permalink
Install Andoid NDK before all CMake steps
Browse files Browse the repository at this point in the history
This prevents the workflow from failing on runners where an NDK
is not preinstalled.
  • Loading branch information
kendal committed Jun 27, 2024
1 parent 46d54f3 commit 77db6c3
Showing 1 changed file with 115 additions and 20 deletions.
135 changes: 115 additions & 20 deletions .github/workflows/swift-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,23 +293,23 @@ jobs:
cxx: cl
cxxflags: ${{ needs.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}
os: Windows
extra_flags:
extra_flags:

- arch: arm64
cc: cl
cflags: ${{ needs.context.outputs.WINDOWS_CMAKE_C_FLAGS }}
cxx: cl
cxxflags: ${{ needs.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}
os: Windows
extra_flags:
extra_flags:

- arch: x86
cc: cl
cflags: ${{ needs.context.outputs.WINDOWS_CMAKE_C_FLAGS }}
cxx: cl
cxxflags: ${{ needs.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}
os: Windows
extra_flags:
extra_flags:

- arch: arm64
cc: clang
Expand Down Expand Up @@ -361,7 +361,6 @@ jobs:
run: Copy-Item ${{ github.workspace }}\SourceCache\swift-build\cmake\SQLite\CMakeLists.txt -destination ${{ github.workspace }}\SourceCache\sqlite-3.43.2\CMakeLists.txt

- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -375,9 +374,30 @@ jobs:
variant: sccache
append-timestamp: false

# TODO(https://github.com/thebrowsercompany/swift-build/issues/167): Replace this with a composite action.
- name: Download Android NDK
if: matrix.os == 'Android'
run: |
$NDKURL = "https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
$NDKHash = "A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
curl.exe -sL $NDKURL -o $env:TEMP\android-ndk-r26b-windows.zip
$SHA256 = Get-FileHash -Path $env:TEMP\android-ndk-r26b-windows.zip -Algorithm SHA256
if ($SHA256.Hash -ne $NDKHash) {
throw "NDK SHA256 mismatch ($($SHA256.Hash) vs $$NDKHash)"
}
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure SQLite
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
cmake -B ${{ github.workspace }}/BinaryCache/sqlite-3.43.2 `
-D BUILD_SHARED_LIBS=NO `
-D CMAKE_BUILD_TYPE=Release `
Expand Down Expand Up @@ -580,7 +600,6 @@ jobs:
Copy-Item ${{ github.workspace }}\SourceCache\swift-installer-scripts\shared\ICU\icupkg.inc.cmake -destination ${{ github.workspace }}\SourceCache\icu\icu4c\icupkg.inc.cmake
- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -594,9 +613,29 @@ jobs:
variant: sccache
append-timestamp: false

- name: Download Android NDK
if: matrix.os == 'Android'
run: |
$NDKURL = "https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
$NDKHash = "A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
curl.exe -sL $NDKURL -o $env:TEMP\android-ndk-r26b-windows.zip
$SHA256 = Get-FileHash -Path $env:TEMP\android-ndk-r26b-windows.zip -Algorithm SHA256
if ($SHA256.Hash -ne $NDKHash) {
throw "NDK SHA256 mismatch ($($SHA256.Hash) vs $$NDKHash)"
}
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure ICU
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
cmake -B ${{ github.workspace }}/BinaryCache/icu-69.1 `
-D BUILD_SHARED_LIBS=NO `
-D BUILD_TOOLS=${{ matrix.BUILD_TOOLS }} `
Expand Down Expand Up @@ -1112,7 +1151,6 @@ jobs:
show-progress: false

- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -1126,9 +1164,29 @@ jobs:
variant: sccache
append-timestamp: false

- name: Download Android NDK
if: matrix.os == 'Android'
run: |
$NDKURL = "https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
$NDKHash = "A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
curl.exe -sL $NDKURL -o $env:TEMP\android-ndk-r26b-windows.zip
$SHA256 = Get-FileHash -Path $env:TEMP\android-ndk-r26b-windows.zip -Algorithm SHA256
if ($SHA256.Hash -ne $NDKHash) {
throw "NDK SHA256 mismatch ($($SHA256.Hash) vs $$NDKHash)"
}
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure zlib
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
cmake -B ${{ github.workspace }}/BinaryCache/zlib-1.3 `
-D BUILD_SHARED_LIBS=NO `
-D CMAKE_BUILD_TYPE=Release `
Expand Down Expand Up @@ -1235,7 +1293,6 @@ jobs:
path: ${{ github.workspace }}/BuildRoot/Library/zlib-1.3/usr

- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -1249,6 +1306,25 @@ jobs:
variant: sccache
append-timestamp: false

- name: Download Android NDK
if: matrix.os == 'Android'
run: |
$NDKURL = "https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
$NDKHash = "A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
curl.exe -sL $NDKURL -o $env:TEMP\android-ndk-r26b-windows.zip
$SHA256 = Get-FileHash -Path $env:TEMP\android-ndk-r26b-windows.zip -Algorithm SHA256
if ($SHA256.Hash -ne $NDKHash) {
throw "NDK SHA256 mismatch ($($SHA256.Hash) vs $$NDKHash)"
}
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure curl
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
Expand Down Expand Up @@ -1430,7 +1506,6 @@ jobs:
show-progress: false

- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -1444,9 +1519,29 @@ jobs:
variant: sccache
append-timestamp: false

- name: Download Android NDK
if: matrix.os == 'Android'
run: |
$NDKURL = "https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
$NDKHash = "A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
curl.exe -sL $NDKURL -o $env:TEMP\android-ndk-r26b-windows.zip
$SHA256 = Get-FileHash -Path $env:TEMP\android-ndk-r26b-windows.zip -Algorithm SHA256
if ($SHA256.Hash -ne $NDKHash) {
throw "NDK SHA256 mismatch ($($SHA256.Hash) vs $$NDKHash)"
}
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure libxml2
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
cmake -B ${{ github.workspace }}/BinaryCache/libxml2-2.11.5 `
-D BUILD_SHARED_LIBS=NO `
-D CMAKE_BUILD_TYPE=Release `
Expand Down Expand Up @@ -1514,7 +1609,7 @@ jobs:
os: Windows
llvm_flags:
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.WINDOWS_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.WINDOWS_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags:
extra_flags:

- arch: x86
cpu: 'i686'
Expand All @@ -1528,7 +1623,7 @@ jobs:
os: Windows
llvm_flags:
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.WINDOWS_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.WINDOWS_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags:
extra_flags:

- arch: arm64
cpu: 'aarch64'
Expand All @@ -1542,7 +1637,7 @@ jobs:
os: Android
llvm_flags: -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DLLVM_HOST_TRIPLE=aarch64-unknown-linux-android${{ needs.context.outputs.ANDROID_API_LEVEL }}
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags: -D CMAKE_ANDROID_NDK=$NDKPATH -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"
extra_flags: -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"

- arch: armv7
cpu: armv7
Expand All @@ -1556,7 +1651,7 @@ jobs:
os: Android
llvm_flags: -DCMAKE_SYSTEM_PROCESSOR=armv7-a -DLLVM_HOST_TRIPLE=armv7a-unknown-linux-androideabi${{ needs.context.outputs.ANDROID_API_LEVEL }}
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags: -D CMAKE_ANDROID_NDK=$NDKPATH -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"
extra_flags: -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"

- arch: i686
cpu: i686
Expand All @@ -1570,7 +1665,7 @@ jobs:
os: Android
llvm_flags: -DCMAKE_SYSTEM_PROCESSOR=i686 -DLLVM_HOST_TRIPLE=i686-unknown-linux-android${{ needs.context.outputs.ANDROID_API_LEVEL }}
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags: -D CMAKE_ANDROID_NDK=$NDKPATH -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86 "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"
extra_flags: -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86 "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"

- arch: x86_64
cpu: 'x86_64'
Expand All @@ -1584,7 +1679,7 @@ jobs:
os: Android
llvm_flags: -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-android${{ needs.context.outputs.ANDROID_API_LEVEL }}
linker_flags: '-D CMAKE_EXE_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}" -D CMAKE_SHARED_LINKER_FLAGS="${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}"'
extra_flags: -D CMAKE_ANDROID_NDK=$NDKPATH -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86_64 "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"
extra_flags: -D SWIFT_ANDROID_NDK_PATH=$NDKPATH -DSWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT=YES -DLLVM_ENABLE_LIBCXX=YES -DSWIFT_USE_LINKER=lld -DCMAKE_ANDROID_API=${{ needs.context.outputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86_64 "-DCMAKE_MAKE_PROGRAM=$NINJA_PATH"

name: ${{ matrix.os }} ${{ matrix.arch }} SDK

Expand Down Expand Up @@ -1670,7 +1765,6 @@ jobs:
show-progress: false

- uses: compnerd/gha-setup-vsdevenv@main
if: matrix.os == 'Windows'
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
Expand All @@ -1697,11 +1791,16 @@ jobs:
Expand-Archive -Path $env:TEMP\android-ndk-r26b-windows.zip -DestinationPath ${{ github.workspace }}\BuildRoot\Library -Force
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Test-Path -Path $NDKPATH
"ANDROID_NDK=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
"ANDROID_NDK_ROOT=$NDKPATH" | Out-File -Encoding utf8 -Append $env:GITHUB_ENV
- name: Configure LLVM
run: |
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
$CLANG_CL = "cl"
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
Remove-Item env:\SDKROOT
cmake -B ${{ github.workspace }}/BinaryCache/llvm `
Expand All @@ -1725,7 +1824,6 @@ jobs:
$CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
$SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
$CMAKE_CPU = if ("${{ matrix.cpu }}" -eq "armv7") { "armv7-a" } else { "${{ matrix.cpu }}" }
Expand Down Expand Up @@ -1781,7 +1879,6 @@ jobs:
# Workaround CMake 3.20 issue
$CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
$SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
$WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
Expand Down Expand Up @@ -1825,7 +1922,6 @@ jobs:
# Workaround CMake 3.20 issue
$CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
$SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
$WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
Expand Down Expand Up @@ -1893,7 +1989,6 @@ jobs:
# Workaround CMake 3.20 issue
$CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
$SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
$NDKPATH = cygpath -m ${{ github.workspace }}/BuildRoot/Library/android-ndk-r26b
$NINJA_PATH = "$(& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products * -nologo -latest -property installationPath)\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
$WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
Expand Down

0 comments on commit 77db6c3

Please sign in to comment.