Skip to content

Commit

Permalink
Fix extension tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Oct 13, 2024
1 parent 558a1b5 commit d7cbbe9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: cache_sqlite_build
with:
path: sqlite/out
key: sqlite-${{ runner.os }}-${{ env.SQLITE_VERSION }}
key: sqlite-v2-${{ runner.os }}-${{ env.SQLITE_VERSION }}
- name: Compile sqlite3 on Linux
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Linux'
run: |
Expand All @@ -37,6 +37,7 @@ jobs:
mkdir ../out
cp sqlite3 ../out
cp .libs/libsqlite3.so ../out
cp *.h ../out
- name: Compile sqlite3 on macOS
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'macOS'
run: |
Expand All @@ -50,6 +51,7 @@ jobs:
mkdir ../out
cp sqlite3 ../out
cp .libs/libsqlite3.dylib ../out
cp *.h ../out
- uses: ilammy/msvc-dev-cmd@v1
if: steps.cache_sqlite_build.outputs.cache-hit != 'true' && runner.os == 'Windows'
- name: Compile sqlite3 on Windows
Expand All @@ -69,6 +71,7 @@ jobs:
cp sqlite3.dll ../out
cp sqlite3.h ../out
cp sqlite3ext.h ../out
cp *.h ../out
- name: Upload built sqlite3 binaries
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -145,12 +148,14 @@ jobs:
chmod a+x sqlite/out/sqlite3
realpath sqlite/out >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV
echo "C_INCLUDE_PATH=$(realpath sqlite/out)" >> $GITHUB_ENV
- name: Install compiled sqlite3 (macOS)
if: runner.os == 'macOS'
run: |
chmod a+x sqlite/out/sqlite3
echo "$(pwd)/sqlite/out" >> $GITHUB_PATH
echo "DYLD_LIBRARY_PATH=$(pwd)/sqlite/out" >> $GITHUB_ENV
echo "CPATH=$(pwd)/sqlite/out" >> $GITHUB_ENV
- uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install compiled sqlite3 (Windows)
Expand Down

0 comments on commit d7cbbe9

Please sign in to comment.