Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6ce2c4

Browse files
committed
ignore dev dependencies in wasm ci
1 parentd930004 commitd6ce2c4

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)

[8]ページ先頭

©2009-2025 Movatter.jp