3232 choco install openssl --version=${{ env.OPENSSL_VERSION}}
3333 }
3434
35+ - name : Install Ninja (Windows)
36+ run : choco install -y --no-progress ninja
37+
3538 # When building SQLCipher, if we specify a path to OpenSSL and
3639 # there are spaces in the path, an error will occur, so to
3740 # avoid this, create the symlink.
@@ -107,9 +110,8 @@ jobs:
107110 mkdir sqlcipher
108111 copy sqlite3.h sqlcipher
109112
110- - name : Patch CMakeLists.txt and WiX Toolset Variables
113+ - name : Patch WiX Toolset Variables
111114 run : |
112- git apply .github\patch\CMakeLists.txt.patch
113115 git apply .github\patch\product.wxs.patch
114116 git apply .github\patch\translations.wxs.patch
115117 git apply .github\patch\variables.wxi.patch
@@ -118,28 +120,29 @@ jobs:
118120 run : |
119121 mkdir release-sqlite && cd release-sqlite
120122 if ("${{ matrix.arch }}" -eq "Win32") {
121- cmake -G "Visual Studio 16 2019 " -A " Win32" -DCMAKE_BUILD_TYPE=Release ..\
123+ cmake -G"Ninja Multi-Config " -DCMAKE_PREFIX_PATH="C:/dev/SQLite- Win32;C:/dev/OpenSSL-Win32" ..\
122124 } else {
123- cmake -G "Visual Studio 16 2019 " ..\
125+ cmake -G"Ninja Multi-Config" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/dev/SQLite-Win64;C:/dev/OpenSSL-Win64 " ..\
124126 }
125127
126128 - name : Build (SQLite)
127- run : cd release-sqlite && devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
129+ run : |
130+ cd release-sqlite
131+ cmake --build . --config Release
128132
129133 - name : Configure build (SQLCipher)
130134 run : |
131135 mkdir release-sqlcipher && cd release-sqlcipher
132136 if ("${{ matrix.arch }}" -eq "Win32") {
133- cmake -G "Visual Studio 16 2019 " -DCMAKE_BUILD_TYPE=Release - Dsqlcipher=1 -A " Win32" ..\
137+ cmake -G"Ninja Multi-Config " -Dsqlcipher=1 -DCMAKE_PREFIX_PATH="C:/dev/SQLCipher-Win32;C:/dev/OpenSSL- Win32" ..\
134138 } else {
135- cmake -G "Visual Studio 16 2019 " -DCMAKE_BUILD_TYPE=Release -Dsqlcipher=1 ..\
139+ cmake -G"Ninja Multi-Config " -Dsqlcipher=1 -DCMAKE_PREFIX_PATH="C:/dev/SQLCipher-Win64;C:/dev/OpenSSL-Win64" ..\
136140 }
137141
138142 - name : Build (SQLCipher)
139143 run : |
140144 cd release-sqlcipher
141- devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
142- mv "Release\DB Browser for SQLite.exe" "Release\DB Browser for SQLCipher.exe"
145+ cmake --build . --config Release
143146
144147 - if : github.event_name != 'pull_request'
145148 name : Create MSI
0 commit comments