@@ -1581,7 +1581,6 @@ jobs:
1581
1581
searchPattern : ' **/*.exe'
1582
1582
1583
1583
sdk :
1584
- continue-on-error : ${{ matrix.arch != 'amd64' }}
1585
1584
needs : [libxml2, curl, zlib, compilers, cmark_gfm, stdlib, macros]
1586
1585
runs-on : ${{ inputs.default_build_runner }}
1587
1586
@@ -1724,7 +1723,7 @@ jobs:
1724
1723
path : ${{ github.workspace }}/BinaryCache/Library/cmark-gfm-0.29.0.gfm.13/usr
1725
1724
1726
1725
- name : cmark-gfm Setup
1727
- run : Copy-Item ${{ github.workspace }}/BuildRoot /Library/cmark-gfm-0.29.0.gfm.13/usr/bin/*.dll ${{ github.workspace }}/BuildRoot /Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/
1726
+ run : Copy-Item ${{ github.workspace }}/BinaryCache /Library/cmark-gfm-0.29.0.gfm.13/usr/bin/*.dll ${{ github.workspace }}/BinaryCache /Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/
1728
1727
1729
1728
- uses : actions/checkout@v4
1730
1729
with :
@@ -1733,25 +1732,33 @@ jobs:
1733
1732
path : ${{ github.workspace }}/SourceCache/swift-corelibs-libdispatch
1734
1733
show-progress : false
1735
1734
- uses : actions/checkout@v4
1736
- if : matrix.os = = 'Android'
1735
+ if : matrix.os ! = 'Android'
1737
1736
with :
1738
- repository : hyp /swift-corelibs-foundation
1739
- ref : eng/recore-android-build
1737
+ repository : apple /swift-corelibs-foundation
1738
+ ref : ${{ inputs.swift_corelibs_foundation_revision }}
1740
1739
path : ${{ github.workspace }}/SourceCache/swift-corelibs-foundation
1741
1740
show-progress : false
1742
1741
- uses : actions/checkout@v4
1743
- if : matrix.os == 'Windows '
1742
+ if : matrix.os == 'Android '
1744
1743
with :
1745
- repository : apple /swift-corelibs-foundation
1746
- ref : ${{ inputs.swift_corelibs_foundation_revision }}
1744
+ repository : hyp /swift-corelibs-foundation
1745
+ ref : eng/recore-android-build
1747
1746
path : ${{ github.workspace }}/SourceCache/swift-corelibs-foundation
1748
1747
show-progress : false
1749
1748
- uses : actions/checkout@v4
1749
+ if : matrix.os != 'Android'
1750
1750
with :
1751
1751
repository : apple/swift-foundation
1752
1752
ref : ${{ inputs.swift_foundation_revision }}
1753
1753
path : ${{ github.workspace }}/SourceCache/swift-foundation
1754
1754
show-progress : false
1755
+ - uses : actions/checkout@v4
1756
+ if : matrix.os == 'Android'
1757
+ with :
1758
+ repository : hyp/swift-foundation
1759
+ ref : android-wmo-merged
1760
+ path : ${{ github.workspace }}/SourceCache/swift-foundation
1761
+ show-progress : false
1755
1762
- uses : actions/checkout@v4
1756
1763
with :
1757
1764
repository : apple/swift-foundation-icu
@@ -1772,10 +1779,10 @@ jobs:
1772
1779
show-progress : false
1773
1780
1774
1781
- run : |
1775
- $RTLPath = cygpath -w ${{ github.workspace }}/BinaryCache/Developer/SDKs/Windows.sdk/usr/bin
1782
+ $RTLPath = cygpath -w ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform/ Developer/SDKs/Windows.sdk/usr/bin
1776
1783
echo ${RTLPath} | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
1777
1784
1778
- $SDKRoot = cygpath -w ${{ github.workspace }}/BinaryCache/Developer/SDKs/Windows.sdk
1785
+ $SDKRoot = cygpath -w ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform/ Developer/SDKs/Windows.sdk
1779
1786
echo "SDKROOT=${SDKRoot}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
1780
1787
1781
1788
# NOTE(compnerd): we execute unconditionally as we use CMake from VSDevEnv
@@ -1799,12 +1806,17 @@ jobs:
1799
1806
- name : Configure libdispatch
1800
1807
run : |
1801
1808
# Workaround CMake 3.20 issue
1802
- $CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1803
- $SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1809
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1810
+ $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1811
+
1804
1812
$NDKPATH = cygpath -m ${{ steps.setup-ndk.outputs.ndk-path }}
1805
1813
1806
- $WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1807
- $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") { "-vfsoverlay ${WIN_OVERLAY_PATH} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules" } else { "" }
1814
+ $WINDOWS_VFS_OVERLAY = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1815
+ $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") {
1816
+ "-vfsoverlay ${WINDOWS_VFS_OVERLAY} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules"
1817
+ } else {
1818
+ ""
1819
+ }
1808
1820
1809
1821
$CMAKE_CPU = if ("${{ matrix.cpu }}" -eq "armv7") { "armv7-a" } else { "${{ matrix.cpu }}" }
1810
1822
@@ -1821,7 +1833,7 @@ jobs:
1821
1833
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr `
1822
1834
-D CMAKE_Swift_COMPILER=${SWIFTC} `
1823
1835
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple_no_api_level }} `
1824
- -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1836
+ -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1825
1837
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
1826
1838
-D CMAKE_SYSTEM_NAME=${{ matrix.os }} `
1827
1839
-D CMAKE_SYSTEM_PROCESSOR=${CMAKE_CPU} `
@@ -1842,17 +1854,23 @@ jobs:
1842
1854
- name : Configure Foundation
1843
1855
run : |
1844
1856
# Workaround CMake 3.20 issue
1845
- $CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1846
- $SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1847
- $NDKPATH = cygpath -m ${{ steps.setup-ndk.outputs.ndk-path }}
1848
- $WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1849
- $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") { "-vfsoverlay ${WIN_OVERLAY_PATH} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules" } else { "" }
1857
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1858
+ $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1859
+
1850
1860
$NDKPATH = cygpath -m ${{ steps.setup-ndk.outputs.ndk-path }}
1861
+
1862
+ $WINDOWS_VFS_OVERLAY = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1863
+ $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") {
1864
+ "-vfsoverlay ${WINDOWS_VFS_OVERLAY} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules"
1865
+ } else {
1866
+ ""
1867
+ }
1868
+
1851
1869
$CMAKE_CPU = if ("${{ matrix.cpu }}" -eq "armv7") { "armv7-a" } else { "${{ matrix.cpu }}" }
1852
- $DEFINITION_FLAG = if ("${{ matrix.os }}" -eq "Windows") { "/D" } else { "-D" }
1853
1870
1854
- $zlib_lib = if ("${{ matrix.os }}" -eq "Windows") { "zlibstatic.lib" } else { "libz.a" }
1855
- $xml_lib = if ("${{ matrix.os }}" -eq "Windows") { "libxml2s.lib" } else { "libxml2.a" }
1871
+ $DEFINITION_FLAG = if ("${{ matrix.os }}" -eq "Windows") { "/D" } else { "-D" }
1872
+ $LIBZ = if ("${{ matrix.os }}" -eq "Windows") { "zlibstatic.lib" } else { "libz.a" }
1873
+ $LIBXML = if ("${{ matrix.os }}" -eq "Windows") { "libxml2s.lib" } else { "libxml2.a" }
1856
1874
1857
1875
$SWIFT_FOUNDATION_SOURCE_DIR = cygpath -m ${{ github.workspace }}/SourceCache/swift-foundation
1858
1876
$SWIFT_FOUNDATION_ICU_SOURCE_DIR = cygpath -m ${{ github.workspace }}/SourceCache/swift-foundation-icu
@@ -1876,7 +1894,7 @@ jobs:
1876
1894
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr `
1877
1895
-D CMAKE_Swift_COMPILER=${SWIFTC} `
1878
1896
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple_no_api_level }} `
1879
- -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1897
+ -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1880
1898
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
1881
1899
-D CMAKE_SYSTEM_NAME=${{ matrix.os }} `
1882
1900
-D CMAKE_SYSTEM_PROCESSOR=${CMAKE_CPU} `
@@ -1898,9 +1916,9 @@ jobs:
1898
1916
-D _SwiftCollections_SourceDIR=$SWIFT_COLLECTIONS_SOURCE_DIR `
1899
1917
-D LIBXML2_DEFINITIONS="${DEFINITION_FLAG}LIBXML_STATIC" `
1900
1918
-D LIBXML2_INCLUDE_DIR=${{ github.workspace }}/BuildRoot/Library/libxml2-2.11.5/usr/include/libxml2 `
1901
- -D LIBXML2_LIBRARY=${{ github.workspace }}/BuildRoot/Library/libxml2-2.11.5/usr/lib/$xml_lib `
1919
+ -D LIBXML2_LIBRARY=${{ github.workspace }}/BuildRoot/Library/libxml2-2.11.5/usr/lib/$LIBXML `
1902
1920
-D ZLIB_ROOT=${{ github.workspace }}/BuildRoot/Library/zlib-1.3/usr `
1903
- -D ZLIB_LIBRARY=${{ github.workspace }}/BuildRoot/Library/zlib-1.3/usr/lib/$zlib_lib
1921
+ -D ZLIB_LIBRARY=${{ github.workspace }}/BuildRoot/Library/zlib-1.3/usr/lib/$LIBZ
1904
1922
- name : Build foundation
1905
1923
run : |
1906
1924
cmake --build ${{ github.workspace }}/BinaryCache/foundation
@@ -1909,12 +1927,17 @@ jobs:
1909
1927
- name : Configure xctest
1910
1928
run : |
1911
1929
# Workaround CMake 3.20 issue
1912
- $CLANG_CL = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1913
- $SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1930
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1931
+ $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1932
+
1914
1933
$NDKPATH = cygpath -m ${{ steps.setup-ndk.outputs.ndk-path }}
1915
1934
1916
- $WIN_OVERLAY_PATH = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1917
- $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") { "-vfsoverlay ${WIN_OVERLAY_PATH} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules" } else { "" }
1935
+ $WINDOWS_VFS_OVERLAY = cygpath -m ${{ github.workspace }}/BinaryCache/swift/stdlib/windows-vfs-overlay.yaml
1936
+ $OVERLAY_FLAGS = if ("${{ matrix.os }}" -eq "Windows") {
1937
+ "-vfsoverlay ${WINDOWS_VFS_OVERLAY} -strict-implicit-module-context -Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules"
1938
+ } else {
1939
+ ""
1940
+ }
1918
1941
1919
1942
$CMAKE_CPU = if ("${{ matrix.cpu }}" -eq "armv7") { "armv7-a" } else { "${{ matrix.cpu }}" }
1920
1943
@@ -1932,7 +1955,7 @@ jobs:
1932
1955
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr `
1933
1956
-D CMAKE_Swift_COMPILER=${SWIFTC} `
1934
1957
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple_no_api_level }} `
1935
- -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BuildRoot /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1958
+ -D CMAKE_Swift_FLAGS="-resource-dir ${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift -L${{ github.workspace }}/BinaryCache /Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/SDKs/${{ matrix.os }}.sdk/usr/lib/swift/${{ matrix.os }} ${OVERLAY_FLAGS} ${{ matrix.swiftflags }}" `
1936
1959
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
1937
1960
-D CMAKE_SYSTEM_NAME=${{ matrix.os }} `
1938
1961
-D CMAKE_SYSTEM_PROCESSOR=${CMAKE_CPU} `
0 commit comments