From beba23f17d618b03e814a082c39267fa05a1417e Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Mon, 4 Nov 2024 16:53:10 -0800 Subject: [PATCH 1/5] try arm build, measure energy --- .github/workflows/test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 20bcd61..684b2de 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -138,6 +138,26 @@ jobs: with: name: sqlite-vec-windows-x86_64-extension path: dist/* + build-linux-aarch64-extension: + runs-on: ubuntu-latest + steps: + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 + with: + task: start-measurement + - uses: actions/checkout@v4 + with: + version: "latest" + - run: sudo apt-get install gcc-arm-linux-gnueabihf + - run: ./scripts/vendor.sh + - run: make sqlite-vec.h + - run: make CC=arm-linux-gnueabihf-gcc loadable static + - uses: actions/upload-artifact@v4 + with: + name: sqlite-vec-linux-aarch64-extension + path: dist/* + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 + with: + task: display-results build-wasm32-emscripten: runs-on: ubuntu-latest steps: From 12259dc35eea46ab705ef59e727994124aab2b60 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Mon, 4 Nov 2024 16:56:33 -0800 Subject: [PATCH 2/5] gha: get-measurement --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 684b2de..2a7615b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -155,6 +155,10 @@ jobs: with: name: sqlite-vec-linux-aarch64-extension path: dist/* + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 + with: + task: get-measurement + label: "all" - uses: green-coding-solutions/eco-ci-energy-estimation@v4 with: task: display-results From aae35ce106d9484286917c368c4dbc4c68c692cd Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 8 Nov 2024 21:46:41 -0800 Subject: [PATCH 3/5] try pyodide build --- .github/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2a7615b..94e39bd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -178,6 +178,24 @@ jobs: name: sqlite-vec-wasm32-emscripten path: dist/.wasm/* include-hidden-files: true + build-pyodide: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: mymindstorm/setup-emsdk@v12 + with: + version: "latest" + - run: ./scripts/vendor.sh + - run: make sqlite-vec.h + - run: | + emcc -c ./sqlite-vec.c -o ./sqlite-vec.o -I ./vendor -fPIC -g3 \ + -DSQLITE_CORE -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_POSIX_FALLOCATE=1 -DSQLITE_ENABLE_MATH_FUNCTIONS=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_OMIT_POPEN=1 -DSQLITE_THREADSAFE=0 + emcc ./sqlite-vec.o -o vec0.so -s SIDE_MODULE=1 -g3 -s WASM_BIGINT=1 + - run: ls + - uses: actions/upload-artifact@v4 + with: + name: sqlite-vec-pyodide + path: vec0.so build-ncruces-go: runs-on: ubuntu-latest steps: From 1f60587b0cbb15cc9c4d3a506f89bbf8318bee73 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 8 Nov 2024 21:48:42 -0800 Subject: [PATCH 4/5] run site deploy only when site changes --- .github/workflows/site.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml index b2ce348..9337d87 100644 --- a/.github/workflows/site.yaml +++ b/.github/workflows/site.yaml @@ -4,6 +4,11 @@ on: push: branches: - main + paths: + - "site/**" + - ".github/**" + - "VERSION" + - "reference.yaml" jobs: deploy: runs-on: ubuntu-latest From 7991cd734b5b20457f3a532ad0b06f6efab2d299 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 8 Nov 2024 21:49:10 -0800 Subject: [PATCH 5/5] gha: no -DSQLITE_CORE on pyodide build, shouldn't need it? --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 94e39bd..a601521 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -189,7 +189,7 @@ jobs: - run: make sqlite-vec.h - run: | emcc -c ./sqlite-vec.c -o ./sqlite-vec.o -I ./vendor -fPIC -g3 \ - -DSQLITE_CORE -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_POSIX_FALLOCATE=1 -DSQLITE_ENABLE_MATH_FUNCTIONS=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_OMIT_POPEN=1 -DSQLITE_THREADSAFE=0 + -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_POSIX_FALLOCATE=1 -DSQLITE_ENABLE_MATH_FUNCTIONS=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_OMIT_POPEN=1 -DSQLITE_THREADSAFE=0 emcc ./sqlite-vec.o -o vec0.so -s SIDE_MODULE=1 -g3 -s WASM_BIGINT=1 - run: ls - uses: actions/upload-artifact@v4