Use newest SQLite on Github Actions

This commit is contained in:
Kacper Madej
2025-01-10 13:19:15 +07:00
parent 536fbe9d9e
commit a2e1ef2439
2 changed files with 32 additions and 19 deletions

View 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

View File

@@ -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