Skip to content

Commit d7cbbe9

Browse files
committed
Fix extension tests in CI
1 parent 558a1b5 commit d7cbbe9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: cache_sqlite_build
2424
with:
2525
path: sqlite/out
26-
key: sqlite-${{ runner.os }}-${{ env.SQLITE_VERSION }}
26+
key: sqlite-v2-${{ runner.os }}-${{ env.SQLITE_VERSION }}
2727
- name: Compile sqlite3 on Linux
2828
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Linux'
2929
run: |
@@ -37,6 +37,7 @@ jobs:
3737
mkdir ../out
3838
cp sqlite3 ../out
3939
cp .libs/libsqlite3.so ../out
40+
cp *.h ../out
4041
- name: Compile sqlite3 on macOS
4142
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'macOS'
4243
run: |
@@ -50,6 +51,7 @@ jobs:
5051
mkdir ../out
5152
cp sqlite3 ../out
5253
cp .libs/libsqlite3.dylib ../out
54+
cp *.h ../out
5355
- uses: ilammy/msvc-dev-cmd@v1
5456
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Windows'
5557
- name: Compile sqlite3 on Windows
@@ -69,6 +71,7 @@ jobs:
6971
cp sqlite3.dll ../out
7072
cp sqlite3.h ../out
7173
cp sqlite3ext.h ../out
74+
cp *.h ../out
7275
- name: Upload built sqlite3 binaries
7376
uses: actions/upload-artifact@v4
7477
with:
@@ -145,12 +148,14 @@ jobs:
145148
chmod a+x sqlite/out/sqlite3
146149
realpath sqlite/out >> $GITHUB_PATH
147150
echo "LD_LIBRARY_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV
151+
echo "C_INCLUDE_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV
148152
- name: Install compiled sqlite3 (macOS)
149153
if: runner.os == 'macOS'
150154
run: |
151155
chmod a+x sqlite/out/sqlite3
152156
echo "$(pwd)/sqlite/out" >> $GITHUB_PATH
153157
echo "DYLD_LIBRARY_PATH=$(pwd)/sqlite/out" >> $GITHUB_ENV
158+
echo "CPATH=$(pwd)/sqlite/out" >> $GITHUB_ENV
154159
- uses: ilammy/msvc-dev-cmd@v1
155160
if: runner.os == 'Windows'
156161
- name: Install compiled sqlite3 (Windows)

0 commit comments

Comments
 (0)