소스 검색

ci: Add miri

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 3 년 전
부모
커밋
93e9cd0e00
1개의 변경된 파일15개의 추가작업 그리고 7개의 파일을 삭제
  1. 15 7
      .github/workflows/lint.yml

+ 15 - 7
.github/workflows/lint.yml

@@ -24,20 +24,28 @@ jobs:
         with:
           profile: minimal
           toolchain: nightly
-          components: rustfmt, clippy
+          components: rustfmt, clippy, miri
+          override: true
 
       - name: Check formatting
         run: |
-          cargo +nightly fmt --all -- --check
+          cargo fmt --all -- --check
           pushd bpf
-          cargo +nightly fmt --all -- --check
+          cargo fmt --all -- --check
           popd
 
       - name: Run clippy
         run: |
-          cargo +nightly clippy -p aya -- --deny warnings
-          cargo +nightly clippy -p aya-gen -- --deny warnings
-          cargo +nightly clippy -p xtask -- --deny warnings
+          cargo clippy -p aya -- --deny warnings
+          cargo clippy -p aya-gen -- --deny warnings
+          cargo clippy -p xtask -- --deny warnings
           pushd bpf
-          cargo +nightly clippy -p aya-bpf -- --deny warnings
+          cargo clippy -p aya-bpf -- --deny warnings
+          popd
+
+      - name: Run miri
+        run: |
+          cargo miri test
+          pushd bpf
+          cargo miri test
           popd