|
23 | 23 | id: cache_sqlite_build |
24 | 24 | with: |
25 | 25 | path: sqlite/out |
26 | | - key: sqlite-${{ runner.os }}-${{ env.SQLITE_VERSION }} |
| 26 | + key: sqlite-v3-${{ runner.os }}-${{ env.SQLITE_VERSION }} |
27 | 27 | - name: Compile sqlite3 on Linux |
28 | 28 | if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Linux' |
29 | 29 | run: | |
|
37 | 37 | mkdir ../out |
38 | 38 | cp sqlite3 ../out |
39 | 39 | cp .libs/libsqlite3.so ../out |
| 40 | + cp *.h ../out |
40 | 41 | - name: Compile sqlite3 on macOS |
41 | 42 | if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'macOS' |
42 | 43 | run: | |
|
50 | 51 | mkdir ../out |
51 | 52 | cp sqlite3 ../out |
52 | 53 | cp .libs/libsqlite3.dylib ../out |
| 54 | + cp *.h ../out |
53 | 55 | - uses: ilammy/msvc-dev-cmd@v1 |
54 | 56 | if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Windows' |
55 | 57 | - name: Compile sqlite3 on Windows |
|
69 | 71 | cp sqlite3.dll ../out |
70 | 72 | cp sqlite3.h ../out |
71 | 73 | cp sqlite3ext.h ../out |
| 74 | + cp *.h ../out |
72 | 75 | - name: Upload built sqlite3 binaries |
73 | 76 | uses: actions/upload-artifact@v4 |
74 | 77 | with: |
@@ -145,12 +148,14 @@ jobs: |
145 | 148 | chmod a+x sqlite/out/sqlite3 |
146 | 149 | realpath sqlite/out >> $GITHUB_PATH |
147 | 150 | echo "LD_LIBRARY_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV |
| 151 | + echo "C_INCLUDE_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV |
148 | 152 | - name: Install compiled sqlite3 (macOS) |
149 | 153 | if: runner.os == 'macOS' |
150 | 154 | run: | |
151 | 155 | chmod a+x sqlite/out/sqlite3 |
152 | 156 | echo "$(pwd)/sqlite/out" >> $GITHUB_PATH |
153 | 157 | echo "DYLD_LIBRARY_PATH=$(pwd)/sqlite/out" >> $GITHUB_ENV |
| 158 | + echo "CPATH=$(pwd)/sqlite/out" >> $GITHUB_ENV |
154 | 159 | - uses: ilammy/msvc-dev-cmd@v1 |
155 | 160 | if: runner.os == 'Windows' |
156 | 161 | - name: Install compiled sqlite3 (Windows) |
|
0 commit comments