clean up wasm32 test
This commit is contained in:
parent
852869dcda
commit
6f19bb9000
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -71,13 +71,8 @@ jobs:
|
|||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
key: check-wasm32-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- run: |
|
- run: cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features --features js
|
||||||
# Hack: wasm support currently relies on not having tokio with features like socket enabled. With resolver 1
|
|
||||||
# dev dependencies can add unwanted dependencies to the build, so we'll hackily disable them for this check.
|
|
||||||
|
|
||||||
sed -i 's/\[dev-dependencies]/[ignore-dependencies]/g' ./tokio-postgres/Cargo.toml
|
|
||||||
cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features --features js
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: test
|
name: test
|
||||||
|
@ -10,6 +10,7 @@ members = [
|
|||||||
"postgres-types",
|
"postgres-types",
|
||||||
"tokio-postgres",
|
"tokio-postgres",
|
||||||
]
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = 2
|
debug = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user