-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (42 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
54 lines (42 loc) · 1.33 KB
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
name: Build and test
on:
push:
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
rust:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup update stable && rustup default stable && rustup component add clippy
- run: cargo build --verbose
name: Building project
- run: cargo clippy
- run: cargo test --verbose
name: Testing project
- name: Build without rusqlite
run: cargo build --no-default-features
- name: Build with smol runtime (tokio disabled)
run: cargo build -p powersync --no-default-features --features smol,rusqlite --verbose
windows:
name: Check Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Install stable Rust
run: rustup update stable
- name: Check PowerSync crate
run: cargo check -p powersync --all-targets