131
131
required : true
132
132
type : string
133
133
134
+ swift_lmdb_revision :
135
+ required : true
136
+ type : string
137
+
134
138
swift_markdown_revision :
135
139
required : true
136
140
type : string
@@ -2601,6 +2605,12 @@ jobs:
2601
2605
ref : ${{ inputs.swift_llbuild_revision }}
2602
2606
path : ${{ github.workspace }}/SourceCache/swift-llbuild
2603
2607
show-progress : false
2608
+ - uses : actions/checkout@v4
2609
+ with :
2610
+ repository : swiftlang/swift-lmdb
2611
+ ref : ${{ inputs.swift_lmdb_revision }}
2612
+ path : ${{ github.workspace }}/SourceCache/swift-lmdb
2613
+ show-progress : false
2604
2614
- uses : actions/checkout@v4
2605
2615
with :
2606
2616
repository : swiftlang/swift-markdown
@@ -3071,6 +3081,26 @@ jobs:
3071
3081
- name : Build swift-format
3072
3082
run : cmake --build ${{ github.workspace }}/BinaryCache/swift-format
3073
3083
3084
+ - name : Configure swift-lmdb
3085
+ run : |
3086
+ # Workaround CMake 3.20 issue
3087
+ $CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
3088
+ $SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
3089
+
3090
+ cmake -B ${{ github.workspace }}/BinaryCache/swift-lmdb `
3091
+ -D BUILD_SHARED_LIBS=NO `
3092
+ -D CMAKE_BUILD_TYPE=Release `
3093
+ -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr `
3094
+ -D CMAKE_C_COMPILER=${CLANG_CL} `
3095
+ -D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
3096
+ -D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
3097
+ -D CMAKE_SYSTEM_NAME=Windows `
3098
+ -D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3099
+ -G Ninja `
3100
+ -S ${{ github.workspace }}/SourceCache/swift-lmdb
3101
+ - name : Build swift-lmdb
3102
+ run : cmake --build ${{ github.workspace }}/BinaryCache/swift-lmdb
3103
+
3074
3104
- name : Configure IndexStoreDB
3075
3105
run : |
3076
3106
# Workaround CMake 3.20 issue
@@ -3096,7 +3126,8 @@ jobs:
3096
3126
-D CMAKE_SYSTEM_NAME=Windows `
3097
3127
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3098
3128
-G Ninja `
3099
- -S ${{ github.workspace }}/SourceCache/indexstore-db
3129
+ -S ${{ github.workspace }}/SourceCache/indexstore-db `
3130
+ -D LMDB_DIR=${{ github.workspace }}/BinaryCache/swift-lmdb/cmake/modules
3100
3131
- name : Build indexstore-db
3101
3132
run : cmake --build ${{ github.workspace }}/BinaryCache/indexstore-db
3102
3133
@@ -3134,7 +3165,8 @@ jobs:
3134
3165
-D SwiftPM_DIR=${{ github.workspace }}/BinaryCache/swift-package-manager/cmake/modules `
3135
3166
-D SwiftSyntax_DIR=${{ github.workspace }}/BinaryCache/swift-syntax/cmake/modules `
3136
3167
-D SwiftSystem_DIR=${{ github.workspace }}/BinaryCache/swift-system/cmake/modules `
3137
- -D TSC_DIR=${{ github.workspace }}/BinaryCache/swift-tools-support-core/cmake/modules
3168
+ -D TSC_DIR=${{ github.workspace }}/BinaryCache/swift-tools-support-core/cmake/modules `
3169
+ -D LMDB_DIR=${{ github.workspace }}/BinaryCache/swift-lmdb/cmake/modules
3138
3170
- name : Build SourceKit-LSP
3139
3171
run : cmake --build ${{ github.workspace }}/BinaryCache/SourceKit-LSP
3140
3172
0 commit comments