forked from asg017/sqlite-loadable-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
135 lines (135 loc) · 4.57 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: "test build"
on:
push:
branches:
- main
permissions:
contents: read
jobs:
test-ubuntu:
name: Testing ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build --examples --verbose
- run: make test
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ubuntu-latest-exts
path: |
target/debug/examples/libcharacters.*
target/debug/examples/libhello.*
target/debug/examples/libscalar.*
target/debug/examples/libseries.*
test-linux-cross:
name: Testing on ${{matrix.target}}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
#- aarch64-unknown-linux-musl # cannot produce cdylib for ... as the target `aarch64-unknown-linux-musl` does not support these crate types
- arm-unknown-linux-gnueabihf
#- arm-unknown-linux-gnueabi # "failed to merge target specific data of file ..."
- armv7-unknown-linux-gnueabihf
#- armv7-unknown-linux-musleabihf # "cannot produce cdylib ... as the target `armv7-unknown-linux-musleabihf` does not support these crate types"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: sudo apt-get update && sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf gcc-arm-linux-gnueabi musl-tools
- run: rustup target add ${{ matrix.target }}
- run: cargo build --examples --verbose --target ${{ matrix.target }}
env:
RUSTFLAGS: "-C target-feature=-crt-static"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: |
target/${{ matrix.target }}/debug/examples/libcharacters.so
target/${{ matrix.target }}/debug/examples/libhello.so
target/${{ matrix.target }}/debug/examples/libscalar.so
target/${{ matrix.target }}/debug/examples/libseries.so
test-macos:
name: Testing macos-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build --examples --verbose
- run: make test python=/usr/local/opt/python@3/libexec/bin/python
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: macos-latest-exts
path: |
target/debug/examples/libcharacters.*
target/debug/examples/libhello.*
target/debug/examples/libscalar.*
target/debug/examples/libseries.*
test-windows:
name: Testing windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build --examples --verbose
- run: make test
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: windows-latest-exts
path: |
target/debug/examples/characters.*
target/debug/examples/hello.*
target/debug/examples/scalar.*
target/debug/examples/series.*