Skip to content

Commit

Permalink
build: fixed external extensions on branch 3.36
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Dec 17, 2021
1 parent 9d1c33a commit c204295
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
make prepare-dist
make download-sqlite
make download-native
make download-external
- name: Build for Linux
if: matrix.os == 'ubuntu-latest'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
make prepare-dist
make download-sqlite
make download-native
make download-external
- name: Build for Linux
if: matrix.os == 'ubuntu-latest'
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2021 Anton Zhiyanov, MIT License
# https://github.com/nalgeon/sqlean

.PHONY: prepare-dist download-sqlite download-native compile-linux compile-windows compile-macos test test-all
.PHONY: prepare-dist download-sqlite download-external compile-linux compile-windows compile-macos test test-all

prepare-dist:
mkdir -p dist
Expand All @@ -12,10 +12,10 @@ download-sqlite:
unzip src.zip
mv sqlite-amalgamation-$(SQLITE_VERSION)/* src

download-native:
curl -L https://github.com/sqlite/sqlite/raw/master/ext/misc/json1.c --output src/sqlite3-json1.c
curl -L https://github.com/sqlite/sqlite/raw/master/ext/misc/spellfix.c --output src/sqlite3-spellfix.c
curl -L https://github.com/mackyle/sqlite/raw/master/src/test_windirent.h --output src/test_windirent.h
download-external:
curl -L https://github.com/sqlite/sqlite/raw/branch-3.36/ext/misc/json1.c --output src/sqlite3-json1.c
curl -L https://github.com/sqlite/sqlite/raw/branch-3.36/ext/misc/spellfix.c --output src/sqlite3-spellfix.c
curl -L https://github.com/mackyle/sqlite/raw/branch-3.36/src/test_windirent.h --output src/test_windirent.h

compile-linux:
gcc -fPIC -shared src/sqlite3-crypto.c src/crypto/*.c -o dist/crypto.so
Expand Down

0 comments on commit c204295

Please sign in to comment.