Skip to content

Commit b35c772

Browse files
committed
Initial commit.
0 parents  commit b35c772

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+292792
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
crates/shell/sqlite/* linguist-vendored

.github/workflows/android.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
pull_request:
4+
name: "rs-android"
5+
jobs:
6+
build:
7+
name: Building Android on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
include:
12+
- os: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
18+
- uses: nttld/setup-ndk@v1
19+
with:
20+
ndk-version: r25c
21+
22+
- name: Setup
23+
run: |
24+
rustup toolchain install nightly-2023-08-28-x86_64-unknown-linux-gnu
25+
rustup component add rust-src --toolchain nightly-2023-08-28-x86_64-unknown-linux-gnu
26+
rustup target add \
27+
aarch64-linux-android \
28+
armv7-linux-androideabi \
29+
x86_64-linux-android \
30+
i686-linux-android
31+
cargo install cargo-ndk
32+
33+
- name: Build Android
34+
run: |
35+
cargo ndk -t armeabi-v7a -t arm64-v8a -o ./jniLibs build --release -Zbuild-std -p powersync_loadable

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
name: "rs-tests"
4+
jobs:
5+
build:
6+
name: Testing on ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
include:
11+
- os: ubuntu-latest
12+
- os: macos-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
18+
- name: Build lib
19+
run: |
20+
cargo build -p powersync_loadable --release
21+
22+
- name: Build sqlite
23+
run: |
24+
cargo build -p powersync_core --release --features static
25+
cargo build -p powersync_sqlite --release
26+
27+
- name: Test powersync
28+
run: |
29+
cargo test -p powersync_core --features loadable_extension

.github/workflows/valgrind.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
pull_request:
4+
name: "rs-valgrind"
5+
jobs:
6+
build:
7+
name: Testing on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
include:
12+
- os: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
18+
- name: Install valgrind
19+
run: sudo apt install -y valgrind
20+
21+
- name: Install Cargo Valgrind
22+
run: |
23+
cargo install cargo-valgrind
24+
25+
- name: Test Core
26+
run: |
27+
cargo valgrind test -p powersync_core --features loadable_extension

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
.vscode
3+
dist/
4+
*.db
5+
build/
6+
target/
7+
.idea

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "sqlite-rs-embedded"]
2+
path = sqlite-rs-embedded
3+
url = https://github.com/vlcn-io/sqlite-rs-embedded.git

0 commit comments

Comments
 (0)