-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (49 loc) · 1.49 KB
/
tests.yml
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
name: Tests
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: |
cargo test --verbose --no-default-features
cargo test --verbose
cargo test --release --verbose
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: |
brew install pkg-config
cargo test --verbose --no-default-features
cargo test --verbose
cargo test --release --verbose
windows:
runs-on: windows-latest
env:
SQLITE_URL: "https://www.sqlite.org/2022/sqlite-amalgamation-3400100.zip"
PKG_CONFIG_PATH: "C:/sqlite3/sqlite-amalgamation-3400100/"
steps:
- uses: actions/checkout@v3
- name: install pkg-config, download and extract sqlite amalgamation, setup pkg-config file for sqlite3
run: |
choco install -y --no-progress --allow-empty-checksums --fail-on-stderr pkgconfiglite
mkdir C:\sqlite3\
curl $env:SQLITE_URL -o C:\sqlite3\sqlite3.zip
Expand-Archive C:\sqlite3\sqlite3.zip -DestinationPath C:\sqlite3\
@"
Name: sqlite3
Description: sqlite3 amalgamation
Version: 3.40.1
Cflags: -I${env:PKG_CONFIG_PATH}
Libs:
"@ > $env:PKG_CONFIG_PATH\sqlite3.pc
- name: Run tests
run: |
cargo test --verbose --no-default-features
cargo test --verbose
cargo test --release --verbose