Skip to content

Commit d6ce2c4

Browse files
committed
ignore dev dependencies in wasm ci
1 parent d930004 commit d6ce2c4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v3
2121
- uses: sfackler/actions/rustup@master
2222
- uses: sfackler/actions/rustfmt@master
23-
23+
2424
clippy:
2525
name: clippy
2626
runs-on: ubuntu-latest
@@ -73,8 +73,11 @@ jobs:
7373
path: target
7474
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
7575
- run: |
76-
sed -i 's/\[dev-dependencies]/[ignore-dependencies]/g' tokio-postgres/Cargo.toml
77-
cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features
76+
# Hack: wasm support currently relies on not having tokio with features like socket enabled. With resolver 1
77+
# dev dependencies can add unwanted dependencies to the build, so we'll hackily disable them for this check.
78+
79+
sed -i 's/\[dev-dependencies]/[ignore-dependencies]/g' ./tokio-postgres/Cargo.toml
80+
cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features
7881
7982
test:
8083
name: test

0 commit comments

Comments
 (0)