Skip to content

Commit

Permalink
only one matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Jul 31, 2024
1 parent 7b4db1c commit 0f07c71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-14", "windows-latest"]
py: ["cp39", "cp310", "cp311", "cp312"]
os: ["ubuntu-latest"]
py: ["cp312"]
# os: ["ubuntu-latest", "macos-14", "windows-latest"]
# py: ["cp39", "cp310", "cp311", "cp312"]
fail-fast: true

steps:
Expand Down
32 changes: 16 additions & 16 deletions build_sqlcipher.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#!/bin/bash

apt-get update && apt-get install -y git gcc libsqlite3-dev tclsh libssl-dev libc6-dev make

git clone --depth=1 --branch=master https://github.com/sqlcipher/sqlcipher.git
cd sqlcipher && \
./configure --enable-tempstore=yes \
CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto -lsqlite3" && \
make sqlite3.c && \
cd ..
# apt-get update && apt-get install -y git gcc libsqlite3-dev tclsh libssl-dev libc6-dev make
#
# git clone --depth=1 --branch=master https://github.com/sqlcipher/sqlcipher.git
# cd sqlcipher && \
# ./configure --enable-tempstore=yes \
# CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto -lsqlite3" && \
# make sqlite3.c && \
# cd ..

git clone --depth=1 --branch=master https://github.com/rigglemania/pysqlcipher3.git
cd pysqlcipher3 && \
mkdir amalgamation && \
cp ../sqlcipher/sqlite3.[ch] amalgamation && \
mkdir src/python3/sqlcipher && \
cp ../sqlcipher/sqlite3.[ch] src/python3/sqlcipher && \
python setup.py build_amalgamation && \
python setup.py build && \
cd ..
cd pysqlcipher3
mkdir amalgamation
cp ../sqlcipher/sqlite3.[ch] amalgamation
mkdir src/python3/sqlcipher
cp ../sqlcipher/sqlite3.[ch] src/python3/sqlcipher
python setup.py build_amalgamation
python setup.py build
cd ..

mkdir src/pysqlcipher3
for f in pysqlcipher3/build/lib.*/pysqlcipher3/*.{py,so}; do
Expand Down

0 comments on commit 0f07c71

Please sign in to comment.