-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (70 loc) · 2.19 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "Test"
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build-linux-x86_64-extension:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: ./scripts/vendor.sh
- run: make loadable
- run: pip install pytest numpy; make test-loadable
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-linux-x86_64-extension
path: dist/*.so
build-macos-x86_64-extension:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./scripts/vendor.sh
- run: make loadable
- 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
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-macos-x86_64-extension
path: dist/*.dylib
build-macos-aarch64-extension:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./scripts/vendor.sh
- run: make loadable
- 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
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-macos-aarch64-extension
path: dist/*.dylib
build-windows-x86_64-extension:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: ./scripts/vendor.sh
shell: bash
- run: make sqlite-lembed.h
#- uses: mxschmitt/action-tmate@v3
- run: make loadable
- run: pip install pytest numpy; make test-loadable
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-windows-x86_64-extension
path: dist/*.dll