Skip to content

Commit 55f8814

Browse files
authored
Merge pull request #280 from supabase/bo/feat/wasm-fdw
feat: add wasm fdw framework with snowflake and paddle fdw
2 parents 370ef67 + 0755743 commit 55f8814

Some content is hidden

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

52 files changed

+20312
-819
lines changed

.github/workflows/test_wrappers.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,31 @@ jobs:
4646
4747
- run: cargo install cargo-pgrx --version 0.11.3
4848
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
49+
- run: cargo install cargo-component --version 0.13.2
50+
- run: rustup target add wasm32-unknown-unknown
4951

5052
- name: Format code
5153
run: |
5254
cd wrappers && cargo fmt --check
55+
cd ../wasm-wrappers/fdw
56+
cargo fmt --manifest-path ./helloworld_fdw/Cargo.toml --check
57+
cargo fmt --manifest-path ./paddle_fdw/Cargo.toml --check
58+
cargo fmt --manifest-path ./snowflake_fdw/Cargo.toml --check
5359
5460
- name: Run clippy
5561
run: |
5662
cd wrappers && RUSTFLAGS="-D warnings" cargo clippy --all --tests --no-deps --features all_fdws,helloworld_fdw
63+
cd ../wasm-wrappers/fdw
64+
RUSTFLAGS="-D warnings" cargo clippy --manifest-path ./helloworld_fdw/Cargo.toml --all --tests --no-deps
65+
RUSTFLAGS="-D warnings" cargo clippy --manifest-path ./paddle_fdw/Cargo.toml --all --tests --no-deps
66+
RUSTFLAGS="-D warnings" cargo clippy --manifest-path ./snowflake_fdw/Cargo.toml --all --tests --no-deps
5767
58-
- run: cd wrappers && cargo pgrx test --features "all_fdws pg15"
68+
- name: Build WASM FDWs
69+
run: |
70+
cd wasm-wrappers/fdw
71+
cargo component build --manifest-path ./helloworld_fdw/Cargo.toml --release --target wasm32-unknown-unknown
72+
cargo component build --manifest-path ./paddle_fdw/Cargo.toml --release --target wasm32-unknown-unknown
73+
cargo component build --manifest-path ./snowflake_fdw/Cargo.toml --release --target wasm32-unknown-unknown
74+
75+
- name: Perform test
76+
run: cd wrappers && cargo pgrx test --features "all_fdws pg15"

0 commit comments

Comments
 (0)