mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-28 20:34:24 +01:00
Use newest SQLite on Github Actions
This commit is contained in:
15
.github/shared/install_sqlite/action.yml
vendored
Normal file
15
.github/shared/install_sqlite/action.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: "Install SQLite"
|
||||
description: "Downloads SQLite directly from https://sqlite.org"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Install SQLite
|
||||
env:
|
||||
SQLITE_VERSION: "3470200"
|
||||
YEAR: 2024
|
||||
run: |
|
||||
curl -o /tmp/sqlite.zip https://www.sqlite.org/$YEAR/sqlite-tools-linux-x64-$SQLITE_VERSION.zip > /dev/null
|
||||
unzip -j /tmp/sqlite.zip sqlite3 -d /usr/local/bin/
|
||||
sqlite3 --version
|
||||
shell: bash
|
||||
36
.github/workflows/rust.yml
vendored
36
.github/workflows/rust.yml
vendored
@@ -59,31 +59,29 @@ jobs:
|
||||
bench:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Bench
|
||||
run: cargo bench
|
||||
- uses: actions/checkout@v3
|
||||
- name: Bench
|
||||
run: cargo bench
|
||||
|
||||
test-limbo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install sqlite
|
||||
run: sudo apt update && sudo apt install -y sqlite3 libsqlite3-dev
|
||||
- name: Install cargo-c
|
||||
env:
|
||||
LINK: https://github.com/lu-zero/cargo-c/releases/download/v0.10.7
|
||||
CARGO_C_FILE: cargo-c-x86_64-unknown-linux-musl.tar.gz
|
||||
run: |
|
||||
curl -L $LINK/$CARGO_C_FILE | tar xz -C ~/.cargo/bin
|
||||
- name: Install cargo-c
|
||||
env:
|
||||
LINK: https://github.com/lu-zero/cargo-c/releases/download/v0.10.7
|
||||
CARGO_C_FILE: cargo-c-x86_64-unknown-linux-musl.tar.gz
|
||||
run: |
|
||||
curl -L $LINK/$CARGO_C_FILE | tar xz -C ~/.cargo/bin
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test
|
||||
run: make test
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/shared/install_sqlite"
|
||||
- name: Test
|
||||
run: make test
|
||||
|
||||
test-sqlite:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install sqlite
|
||||
run: sudo apt update && sudo apt install -y sqlite3 libsqlite3-dev
|
||||
- name: Test
|
||||
run: SQLITE_EXEC="sqlite3" make test-compat
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/shared/install_sqlite"
|
||||
- name: Test
|
||||
run: SQLITE_EXEC="sqlite3" make test-compat
|
||||
|
||||
Reference in New Issue
Block a user