clean up wasm32 test

This commit is contained in:
Steven Fackler 2023-06-10 10:21:34 -04:00
parent 852869dcda
commit 6f19bb9000
No known key found for this signature in database
GPG Key ID: 408917B7276A5226
2 changed files with 3 additions and 7 deletions

View File

@ -71,13 +71,8 @@ jobs:
- uses: actions/cache@v3
with:
path: target
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
- run: |
# 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
key: check-wasm32-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features --features js
test:
name: test

View File

@ -10,6 +10,7 @@ members = [
"postgres-types",
"tokio-postgres",
]
resolver = "2"
[profile.release]
debug = 2