@@ -35,7 +35,8 @@ build_sqlcipher() {
35
35
echo " ✅"
36
36
37
37
printf ' %s' " Building SQLCipher ... "
38
- eval make sqlite3.c " $mute "
38
+ ncpu=$( sysctl -n hw.ncpu 2> /dev/null || echo " 1" )
39
+ eval make -j" ${ncpu} " sqlite3.c " $mute "
39
40
echo " ✅"
40
41
41
42
eval popd " $mute " || { echo " popd failed" ; exit 1; }
@@ -69,7 +70,6 @@ update_readme() {
69
70
exit 1
70
71
fi
71
72
72
- new_version=
73
73
cat << - EOF
74
74
75
75
DuckDuckGo GRDB.swift current version: ${current_version}
@@ -87,9 +87,15 @@ update_readme() {
87
87
echo " Updated .github/README.md ✅"
88
88
}
89
89
90
- build_release () {
90
+ build_and_test_release () {
91
91
echo " Testing the build ..."
92
92
rm -rf " ${cwd} /.build"
93
+ # The skipped test references a test database added with a podfile.
94
+ # We're safe to disable it since we don't care about SQLCipher 3 compatibility anyway.
95
+ swift test --skip " EncryptionTests.testSQLCipher3Compatibility"
96
+
97
+ echo " "
98
+ echo " Building using release configuration ..."
93
99
swift build -c release
94
100
95
101
cat << - EOF
@@ -105,7 +111,7 @@ setup_new_release_branch() {
105
111
local release_branch=" release/${new_version} "
106
112
107
113
git checkout -b " $release_branch "
108
- git commit -a -m " DuckDuckGo GRDB.swift ${new_version} (GRDB ${upstream-version} , SQLCipher ${sqlcipher_version} )"
114
+ git commit " $sqlcipher_path " -m " DuckDuckGo GRDB.swift ${new_version} (GRDB ${upstream-version} , SQLCipher ${sqlcipher_version} )"
109
115
110
116
cat << - EOF
111
117
@@ -118,7 +124,7 @@ main() {
118
124
build_sqlcipher
119
125
update_sqlcipher_config
120
126
update_readme
121
- build_release
127
+ build_and_test_release
122
128
setup_new_release_branch
123
129
}
124
130
0 commit comments