@@ -3768,19 +3768,45 @@ jobs:
3768
3768
- name : Build swift-collections
3769
3769
run : cmake --build ${{ github.workspace }}/BinaryCache/swift-collections
3770
3770
3771
+ - name : Configure swift-asn1
3772
+ run : |
3773
+ # Workaround CMake 3.20 issue
3774
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3775
+ $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3776
+
3777
+ cmake -B ${{ github.workspace }}/BinaryCache/swift-asn1 `
3778
+ -D BUILD_SHARED_LIBS=NO `
3779
+ -D CMAKE_BUILD_TYPE=Release `
3780
+ -D CMAKE_Swift_COMPILER=${SWIFTC} `
3781
+ -D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
3782
+ -D CMAKE_Swift_COMPILER_WORKS=YES `
3783
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
3784
+ -D CMAKE_Swift_FLAGS_RELEASE="-O" `
3785
+ ${{ matrix.cmake_linker_flags }} `
3786
+ -D CMAKE_SYSTEM_NAME=Windows `
3787
+ -D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3788
+ -G Ninja `
3789
+ -S ${{ github.workspace }}/SourceCache/swift-asn1
3790
+ - name : Build swift-asn1
3791
+ run : cmake --build ${{ github.workspace }}/BinaryCache/swift-asn1
3792
+
3771
3793
- name : Configure swift-crypto
3772
3794
run : |
3773
3795
# Workaround CMake 3.20 issue
3796
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3774
3797
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3775
3798
3776
3799
cmake -B ${{ github.workspace }}/BinaryCache/swift-crypto `
3777
3800
-D BUILD_SHARED_LIBS=NO `
3778
3801
-D BUILD_TESTING=NO `
3779
3802
-D CMAKE_BUILD_TYPE=Release `
3780
- -D CMAKE_C_COMPILER=cl `
3803
+ -D CMAKE_ASM_COMPILER=${CLANG_CL} `
3804
+ -D CMAKE_ASM_FLAGS="--target=${{ matrix.triple }}" `
3805
+ -D CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL="/MD" `
3806
+ -D CMAKE_C_COMPILER=${CLANG_CL} `
3781
3807
-D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
3782
3808
-D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
3783
- -D CMAKE_CXX_COMPILER=cl `
3809
+ -D CMAKE_CXX_COMPILER=${CLANG_CL} `
3784
3810
-D CMAKE_CXX_COMPILER_TARGET=${{ matrix.triple }} `
3785
3811
-D CMAKE_CXX_FLAGS="${{ inputs.WINDOWS_CMAKE_CXX_FLAGS }}" `
3786
3812
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr `
@@ -3793,23 +3819,26 @@ jobs:
3793
3819
-D CMAKE_SYSTEM_NAME=Windows `
3794
3820
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3795
3821
-G Ninja `
3796
- -S ${{ github.workspace }}/SourceCache/swift-crypto
3822
+ -S ${{ github.workspace }}/SourceCache/swift-crypto `
3823
+ -D SwiftASN1_DIR=${{ github.workspace }}/BinaryCache/swift-asn1/cmake/modules
3824
+
3797
3825
- name : Build swift-crypto
3798
3826
run : cmake --build ${{ github.workspace }}/BinaryCache/swift-crypto
3799
3827
3800
3828
- name : Configure swift-llbuild
3801
3829
run : |
3802
3830
# Workaround CMake 3.20 issue
3831
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3803
3832
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3804
3833
3805
3834
cmake -B ${{ github.workspace }}/BinaryCache/swift-llbuild `
3806
3835
-D BUILD_SHARED_LIBS=YES `
3807
3836
-D BUILD_TESTING=NO `
3808
3837
-D CMAKE_BUILD_TYPE=Release `
3809
- -D CMAKE_C_COMPILER=cl `
3838
+ -D CMAKE_C_COMPILER=${CLANG_CL} `
3810
3839
-D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
3811
3840
-D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
3812
- -D CMAKE_CXX_COMPILER=cl `
3841
+ -D CMAKE_CXX_COMPILER=${CLANG_CL} `
3813
3842
-D CMAKE_CXX_COMPILER_TARGET=${{ matrix.triple }} `
3814
3843
-D CMAKE_CXX_FLAGS="${{ inputs.WINDOWS_CMAKE_CXX_FLAGS }}" `
3815
3844
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr `
@@ -3928,28 +3957,6 @@ jobs:
3928
3957
- name : Build swift-driver
3929
3958
run : cmake --build ${{ github.workspace }}/BinaryCache/swift-driver
3930
3959
3931
- - name : Configure swift-asn1
3932
- run : |
3933
- # Workaround CMake 3.20 issue
3934
- $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3935
- $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3936
-
3937
- cmake -B ${{ github.workspace }}/BinaryCache/swift-asn1 `
3938
- -D BUILD_SHARED_LIBS=NO `
3939
- -D CMAKE_BUILD_TYPE=Release `
3940
- -D CMAKE_Swift_COMPILER=${SWIFTC} `
3941
- -D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
3942
- -D CMAKE_Swift_COMPILER_WORKS=YES `
3943
- -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
3944
- -D CMAKE_Swift_FLAGS_RELEASE="-O" `
3945
- ${{ matrix.cmake_linker_flags }} `
3946
- -D CMAKE_SYSTEM_NAME=Windows `
3947
- -D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3948
- -G Ninja `
3949
- -S ${{ github.workspace }}/SourceCache/swift-asn1
3950
- - name : Build swift-asn1
3951
- run : cmake --build ${{ github.workspace }}/BinaryCache/swift-asn1
3952
-
3953
3960
- name : Configure swift-certificates
3954
3961
run : |
3955
3962
# Workaround CMake 3.20 issue
0 commit comments