Skip to content

Commit 8a238d8

Browse files
authored
Merge pull request #2 from BRonen/remove-nix-from-tests-action
remove nix from github actions
2 parents 5a9c998 + 055445a commit 8a238d8

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.github/workflows/lspec.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
name: "LSpec CI"
2+
23
on:
34
pull_request:
45
push:
56
branches:
67
- master
8+
workflow_dispatch:
9+
710
jobs:
811
build:
9-
name: Build
12+
name: Tests
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v2
13-
- uses: cachix/install-nix-action@v22
14-
with:
15-
nix_path: nixpkgs=channel:nixos-24.11
16-
- name: Install Lean
17-
run: nix-shell
18-
- name: Log versions
19-
run: nix-shell --run "lean --version && lake --version"
20-
- name: run LSpec binary
21-
run: nix-shell --run "lake exe lspec"
15+
- uses: actions/checkout@v5
16+
- uses: leanprover/lean-action@v1

native/sqliteffi.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <lean/lean.h>
22
#include <sqlite3.h>
3-
#include <stdio.h>
43

54
lean_external_class* g_sqlite_connection_external_class = NULL;
65
lean_external_class* g_sqlite_cursor_external_class = NULL;
@@ -26,16 +25,12 @@ sqlite3_stmt* unbox_cursor(lean_object* o) {
2625
void connection_finalize(void* conn) {
2726
if (!conn) return;
2827

29-
printf("connection_finalize: %x\n", conn);
30-
3128
sqlite3_close(conn);
3229
}
3330

3431
void cursor_finalize(void* cursor) {
3532
if (!cursor) return;
3633

37-
printf("cursor_finalize: %x\n", cursor);
38-
3934
sqlite3_finalize(cursor);
4035
}
4136

@@ -49,8 +44,6 @@ lean_obj_res lean_sqlite_open(b_lean_obj_arg path, uint32_t flags) {
4944
const char* path_str = lean_string_cstr(path);
5045
sqlite3* conn = malloc(sizeof(sqlite3*));
5146

52-
printf("initialize_connection: %x\n", conn);
53-
5447
int32_t c = sqlite3_open_v2(path_str, &conn, flags, NULL);
5548

5649
if (c == SQLITE_OK)
@@ -69,8 +62,6 @@ lean_obj_res lean_sqlite_prepare(b_lean_obj_arg conn_box, b_lean_obj_arg query_s
6962

7063
sqlite3_stmt* cursor = malloc(sizeof(sqlite3_stmt*));
7164

72-
printf("initialize_cursor: %x\n", cursor);
73-
7465
int32_t c = sqlite3_prepare_v2(conn, query, -1, &cursor, NULL);
7566

7667
if (c != SQLITE_OK) {

0 commit comments

Comments
 (0)