ci: install libsqlite package
parent
373873d71f
commit
a7568ea54b
|
@ -34,7 +34,7 @@ jobs:
|
|||
with:
|
||||
node-version: 12.x
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update; sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev
|
||||
run: sudo apt-get update; sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev
|
||||
- name: Build v
|
||||
run: make && ./v -cc gcc -o v v.v
|
||||
- name: Test v->c
|
||||
|
|
|
@ -13,6 +13,8 @@ matrix:
|
|||
- libglfw3-dev
|
||||
- libfreetype6-dev
|
||||
- libssl-dev
|
||||
- sqlite3
|
||||
- libsqlite3-dev
|
||||
- os: windows
|
||||
name: "windows_gcc"
|
||||
language: bash
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import sqlite
|
||||
|
||||
fn test_sqlite() {
|
||||
$if mac {
|
||||
db := sqlite.connect('users.db')
|
||||
db.exec("create table users (id integer primary key, name text default '');")
|
||||
|
||||
|
@ -20,5 +19,4 @@ fn test_sqlite() {
|
|||
for row in users {
|
||||
println(row.vals)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue