Skip to content

Commit e8c0f68

Browse files
committed
Enable clippy for libm in CI
1 parent 8bf711d commit e8c0f68

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282
[ -n "${{ matrix.channel }}" ] && channel="${{ matrix.channel }}"
8383
rustup update "$channel" --no-self-update
8484
rustup default "$channel"
85-
rustup target add ${{ matrix.target }}
86-
rustup component add llvm-tools-preview
85+
rustup target add "${{ matrix.target }}"
86+
rustup component add clippy llvm-tools-preview
8787
- uses: Swatinem/rust-cache@v2
8888
with:
8989
key: ${{ matrix.target }}
@@ -105,6 +105,12 @@ jobs:
105105
rustup target add x86_64-unknown-linux-musl
106106
cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}
107107
108+
- name: Clippy
109+
run: |
110+
# Run clippy on `libm`
111+
cargo clippy --target "${{ matrix.target }}" --package libm
112+
113+
108114
builtins:
109115
name: Check use with compiler-builtins
110116
runs-on: ubuntu-latest

ci/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,4 @@ else
8888
$cmd --benches
8989
$cmd --benches --release
9090
fi
91+

0 commit comments

Comments
 (0)