Skip to content

Commit 665a6f0

Browse files
committed
a few more gha tweaks
1 parent 03fea2f commit 665a6f0

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/tests.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: dtolnay/rust-toolchain@stable
14-
- run: cargo build --all-targets
14+
- run: cargo build --all-targets --all-features
1515
build-musl:
1616
runs-on: ubuntu-latest
1717
steps:
@@ -20,27 +20,27 @@ jobs:
2020
- uses: dtolnay/rust-toolchain@stable
2121
with:
2222
targets: x86_64-unknown-linux-musl
23-
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo build --all-targets --target x86_64-unknown-linux-musl
23+
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo build --all-targets --all-features --target x86_64-unknown-linux-musl
2424
build-macos:
2525
runs-on: macos-latest
2626
steps:
2727
- uses: actions/checkout@v3
2828
- uses: dtolnay/rust-toolchain@stable
29-
- run: cargo build --all-targets
29+
- run: cargo build --all-targets --all-features
3030
build-android:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v3
3434
- uses: dtolnay/rust-toolchain@stable
3535
- uses: cargo-bins/cargo-binstall@main
3636
- run: cargo binstall cross
37-
- run: cross check --all-targets --target aarch64-linux-android --no-default-features
37+
- run: cross check --all-targets --all-features --target aarch64-linux-android --no-default-features
3838
test:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- uses: actions/checkout@v3
4242
- uses: dtolnay/rust-toolchain@stable
43-
- run: cargo test
43+
- run: cargo test --all-features
4444
test-musl:
4545
runs-on: ubuntu-latest
4646
steps:
@@ -49,27 +49,29 @@ jobs:
4949
- uses: dtolnay/rust-toolchain@stable
5050
with:
5151
targets: x86_64-unknown-linux-musl
52-
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo test --target x86_64-unknown-linux-musl
52+
- run: TARGET_CC=clang-18 TARGET_AR=llvm-ar-18 cargo test --all-features --target x86_64-unknown-linux-musl
5353
test-macos:
5454
runs-on: macos-latest
5555
steps:
5656
- uses: actions/checkout@v3
5757
- uses: dtolnay/rust-toolchain@stable
58-
- run: cargo test
58+
- run: cargo test --all-features
5959
lint:
6060
runs-on: ubuntu-latest
6161
steps:
6262
- uses: actions/checkout@v3
6363
- uses: dtolnay/rust-toolchain@stable
6464
with:
6565
components: clippy, rustfmt
66-
- run: cargo install --locked --debug cargo-deny
67-
- run: cargo clippy --all-targets -- -Dwarnings
66+
- uses: cargo-bins/cargo-binstall@main
67+
- run: cargo binstall cargo-deny
68+
- run: cargo clippy --all-targets --all-features -- -Dwarnings
6869
- run: cargo fmt --check
6970
- run: cargo deny check
7071
doc:
7172
runs-on: ubuntu-latest
7273
steps:
7374
- uses: actions/checkout@v3
7475
- uses: dtolnay/rust-toolchain@stable
75-
- run: cargo doc
76+
- run: RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features
77+
- run: cargo test --doc --all-features

0 commit comments

Comments
 (0)