Skip to content

Commit

Permalink
build exe & upload less stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord committed May 26, 2024
1 parent 8dea946 commit 9226263
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: Build - Windows
on:
workflow_dispatch:
push:
branches:
- master
paths:
- ".github/workflows/build-windows.yml"

jobs:
build:
Expand Down Expand Up @@ -74,13 +78,13 @@ jobs:
cd C:\dev\SQLCipher-${{ matrix.arch }}
git clone -q https://github.com/sqlcipher/sqlcipher.git .
git reset --hard $(git describe --tags --abbrev=0)
nmake /f Makefile.msc sqlcipher.dll USE_AMALGAMATION=1 NO_TCL=1 SQLITE3DLL=sqlcipher.dll SQLITE3LIB=sqlcipher.lib SQLITE3EXE=sqlcipher.exe LTLINKOPTS="`"$env:ProgramFiles\OpenSSL\lib\libcrypto.lib`"" OPT_FEATURE_FLAGS="-DSQLITE_TEMP_STORE=2 -DSQLITE_HAS_CODEC=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT4=1 -DSQLITE_SOUNDEX=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_ENABLE_RTREE=1 -DSQLCIPHER_CRYPTO_OPENSSL=1 -DSQLITE_MAX_ATTACHED=125 `"-I$env:ProgramFiles\OpenSSL\include`""
nmake /f Makefile.msc sqlcipher.dll sqlcipher.exe USE_AMALGAMATION=1 NO_TCL=1 SQLITE3DLL=sqlcipher.dll SQLITE3LIB=sqlcipher.lib SQLITE3EXE=sqlcipher.exe LTLINKOPTS="`"$env:ProgramFiles\OpenSSL\lib\libcrypto.lib`"" OPT_FEATURE_FLAGS="-DSQLITE_TEMP_STORE=2 -DSQLITE_HAS_CODEC=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT4=1 -DSQLITE_SOUNDEX=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_ENABLE_RTREE=1 -DSQLCIPHER_CRYPTO_OPENSSL=1 -DSQLITE_MAX_ATTACHED=125 `"-I$env:ProgramFiles\OpenSSL\include`""
mkdir sqlcipher
copy sqlite3.h sqlcipher
copy sqlite3.c sqlite3.h sqlcipher
- name: Prepare artifacts
run: |
Compress-Archive -Path C:\dev\* -DestinationPath build-artifacts-${{ matrix.arch }}.zip
Compress-Archive -Path C:\dev\SQLCipher-${{ matrix.arch }}\sqlcipher -DestinationPath build-artifacts-${{ matrix.arch }}.zip
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Build sqlcipher inspired by **DB Browser for SQLite**.
Build sqlcipher with GitHub Actions, inspired by [DB Browser for SQLite](https://sqlitebrowser.org/).

See also: [rotki-pysqlcipher3](https://github.com/rotki/pysqlcipher3)

0 comments on commit 9226263

Please sign in to comment.