|
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - main |
| 6 | + - partition-by |
6 | 7 | permissions: |
7 | 8 | contents: read |
8 | 9 | jobs: |
9 | 10 | build-linux-x86_64-extension: |
10 | 11 | runs-on: ubuntu-20.04 |
11 | 12 | steps: |
12 | 13 | - uses: actions/checkout@v4 |
13 | | - - uses: actions/setup-python@v5 |
| 14 | + - uses: astral-sh/setup-uv@v3 |
14 | 15 | with: |
15 | | - python-version: "3.12" |
| 16 | + enable-cache: true |
16 | 17 | - run: ./scripts/vendor.sh |
17 | 18 | - run: make loadable static |
18 | | - - run: pip install pytest numpy; make test-loadable |
| 19 | + - run: uv sync --directory tests |
| 20 | + - run: make test-loadable python=./tests/.venv/bin/python |
19 | 21 | - uses: actions/upload-artifact@v4 |
20 | 22 | with: |
21 | 23 | name: sqlite-vec-linux-x86_64-extension |
22 | 24 | path: dist/* |
| 25 | + build-macos-x86_64-extension: |
| 26 | + runs-on: macos-12 |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + - uses: astral-sh/setup-uv@v3 |
| 30 | + with: |
| 31 | + enable-cache: true |
| 32 | + - run: uv python install 3.12 |
| 33 | + - run: ./scripts/vendor.sh |
| 34 | + - run: make loadable static |
| 35 | + - run: uv sync --directory tests |
| 36 | + - run: make test-loadable python=./tests/.venv/bin/python |
| 37 | + - uses: actions/upload-artifact@v4 |
| 38 | + with: |
| 39 | + name: sqlite-vec-macos-x86_64-extension |
| 40 | + path: dist/* |
| 41 | + build-macos-aarch64-extension: |
| 42 | + runs-on: macos-14 |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - uses: astral-sh/setup-uv@v3 |
| 46 | + with: |
| 47 | + enable-cache: true |
| 48 | + - run: ./scripts/vendor.sh |
| 49 | + - run: make loadable static |
| 50 | + - run: uv sync --directory tests |
| 51 | + - run: make test-loadable python=./tests/.venv/bin/python |
| 52 | + - uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: sqlite-vec-macos-aarch64-extension |
| 55 | + path: dist/* |
| 56 | + build-windows-x86_64-extension: |
| 57 | + runs-on: windows-2019 |
| 58 | + steps: |
| 59 | + - uses: actions/checkout@v4 |
| 60 | + - uses: ilammy/msvc-dev-cmd@v1 |
| 61 | + - uses: astral-sh/setup-uv@v3 |
| 62 | + with: |
| 63 | + enable-cache: true |
| 64 | + - run: ./scripts/vendor.sh |
| 65 | + shell: bash |
| 66 | + - run: make sqlite-vec.h |
| 67 | + - run: mkdir dist |
| 68 | + - run: cl.exe /fPIC -shared /W4 /Ivendor/ /O2 /LD sqlite-vec.c -o dist/vec0.dll |
| 69 | + - run: uv sync --directory tests |
| 70 | + - run: make test-loadable python=./tests/.venv/Scripts/python.exe |
| 71 | + shell: bash |
| 72 | + - uses: actions/upload-artifact@v4 |
| 73 | + with: |
| 74 | + name: sqlite-vec-windows-x86_64-extension |
| 75 | + path: dist/* |
| 76 | + build-linux-aarch64-extension: |
| 77 | + runs-on: ubuntu-latest |
| 78 | + steps: |
| 79 | + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 |
| 80 | + with: |
| 81 | + task: start-measurement |
| 82 | + - uses: actions/checkout@v4 |
| 83 | + with: |
| 84 | + version: "latest" |
| 85 | + - run: sudo apt-get install gcc-arm-linux-gnueabihf |
| 86 | + - run: ./scripts/vendor.sh |
| 87 | + - run: make sqlite-vec.h |
| 88 | + - run: make CC=arm-linux-gnueabihf-gcc loadable static |
| 89 | + - uses: actions/upload-artifact@v4 |
| 90 | + with: |
| 91 | + name: sqlite-vec-linux-aarch64-extension |
| 92 | + path: dist/* |
| 93 | + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 |
| 94 | + with: |
| 95 | + task: get-measurement |
| 96 | + label: "all" |
| 97 | + - uses: green-coding-solutions/eco-ci-energy-estimation@v4 |
| 98 | + with: |
| 99 | + task: display-results |
23 | 100 | build-android-extensions: |
24 | 101 | runs-on: ubuntu-latest |
25 | 102 | strategy: |
@@ -98,58 +175,6 @@ jobs: |
98 | 175 | with: |
99 | 176 | name: sqlite-vec-${{ matrix.platforms.name }}-extension |
100 | 177 | path: dist/* |
101 | | - build-macos-x86_64-extension: |
102 | | - runs-on: macos-12 |
103 | | - steps: |
104 | | - - uses: actions/checkout@v4 |
105 | | - - run: ./scripts/vendor.sh |
106 | | - - run: make loadable static |
107 | | - - run: /usr/local/opt/python@3/libexec/bin/python -m pip install --break-system-packages pytest numpy; make test-loadable python=/usr/local/opt/python@3/libexec/bin/python |
108 | | - - uses: actions/upload-artifact@v4 |
109 | | - with: |
110 | | - name: sqlite-vec-macos-x86_64-extension |
111 | | - path: dist/* |
112 | | - build-macos-aarch64-extension: |
113 | | - runs-on: macos-14 |
114 | | - steps: |
115 | | - - uses: actions/checkout@v4 |
116 | | - - run: ./scripts/vendor.sh |
117 | | - - run: make loadable static |
118 | | - - run: /opt/homebrew/opt/python3/libexec/bin/python -m pip install pytest numpy --break-system-packages; make test-loadable python=/opt/homebrew/opt/python3/libexec/bin/python |
119 | | - - uses: actions/upload-artifact@v4 |
120 | | - with: |
121 | | - name: sqlite-vec-macos-aarch64-extension |
122 | | - path: dist/* |
123 | | - build-windows-x86_64-extension: |
124 | | - runs-on: windows-2019 |
125 | | - steps: |
126 | | - - uses: actions/checkout@v4 |
127 | | - - uses: ilammy/msvc-dev-cmd@v1 |
128 | | - - uses: actions/setup-python@v5 |
129 | | - with: |
130 | | - python-version: "3.12" |
131 | | - - run: ./scripts/vendor.sh |
132 | | - shell: bash |
133 | | - - run: make sqlite-vec.h |
134 | | - - run: mkdir dist |
135 | | - - run: cl.exe /fPIC -shared /W4 /Ivendor/ /O2 /LD sqlite-vec.c -o dist/vec0.dll |
136 | | - - run: pip install pytest numpy; make test-loadable |
137 | | - - uses: actions/upload-artifact@v4 |
138 | | - with: |
139 | | - name: sqlite-vec-windows-x86_64-extension |
140 | | - path: dist/* |
141 | | - build-linux-aarch64-extension: |
142 | | - runs-on: ubuntu-latest |
143 | | - steps: |
144 | | - - uses: actions/checkout@v4 |
145 | | - - run: sudo apt-get install gcc-arm-linux-gnueabihf |
146 | | - - run: ./scripts/vendor.sh |
147 | | - - run: make sqlite-vec.h |
148 | | - - run: make CC=arm-linux-gnueabihf-gcc loadable static |
149 | | - - uses: actions/upload-artifact@v4 |
150 | | - with: |
151 | | - name: sqlite-vec-linux-aarch64-extension |
152 | | - path: dist/* |
153 | 178 | build-wasm32-emscripten: |
154 | 179 | runs-on: ubuntu-latest |
155 | 180 | steps: |
|
0 commit comments