about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-11-01 06:32:06 -0500
committerTrevor Gross <tmgross@umich.edu>2024-11-01 06:42:39 -0500
commit659cdcad33b0baf5d98af698ccd05fa9369a0cc9 (patch)
treef66cb28203864413b0711f46dd1a51dd5ac09a77 /library
parentc2402e4d3c2708cba97e463f7a863d08af8d51a1 (diff)
downloadrust-659cdcad33b0baf5d98af698ccd05fa9369a0cc9.tar.gz
rust-659cdcad33b0baf5d98af698ccd05fa9369a0cc9.zip
Enable clippy for `libm` in CI
Diffstat (limited to 'library')
-rw-r--r--library/compiler-builtins/libm/.github/workflows/main.yml10
-rwxr-xr-xlibrary/compiler-builtins/libm/ci/run.sh1
2 files changed, 9 insertions, 2 deletions
diff --git a/library/compiler-builtins/libm/.github/workflows/main.yml b/library/compiler-builtins/libm/.github/workflows/main.yml
index bfd86497b4e..14e55788479 100644
--- a/library/compiler-builtins/libm/.github/workflows/main.yml
+++ b/library/compiler-builtins/libm/.github/workflows/main.yml
@@ -82,8 +82,8 @@ jobs:
         [ -n "${{ matrix.channel }}" ] && channel="${{ matrix.channel }}"
         rustup update "$channel" --no-self-update
         rustup default "$channel"
-        rustup target add ${{ matrix.target }}
-        rustup component add llvm-tools-preview
+        rustup target add "${{ matrix.target }}"
+        rustup component add clippy llvm-tools-preview
     - uses: Swatinem/rust-cache@v2
       with:
         key: ${{ matrix.target }}
@@ -105,6 +105,12 @@ jobs:
         rustup target add x86_64-unknown-linux-musl
         cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}
 
+    - name: Clippy
+      run: |
+        # Run clippy on `libm`
+        cargo clippy --target "${{ matrix.target }}" --package libm
+        
+
   builtins:
     name: Check use with compiler-builtins
     runs-on: ubuntu-latest
diff --git a/library/compiler-builtins/libm/ci/run.sh b/library/compiler-builtins/libm/ci/run.sh
index a211bc98cbf..32453663e05 100755
--- a/library/compiler-builtins/libm/ci/run.sh
+++ b/library/compiler-builtins/libm/ci/run.sh
@@ -88,3 +88,4 @@ else
     $cmd --benches
     $cmd --benches --release
 fi
+