瀏覽代碼

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:
         with:
           profile: minimal
           profile: minimal
           toolchain: nightly
           toolchain: nightly
-          components: rustfmt, clippy
+          components: rustfmt, clippy, miri
+          override: true
 
 
       - name: Check formatting
       - name: Check formatting
         run: |
         run: |
-          cargo +nightly fmt --all -- --check
+          cargo fmt --all -- --check
           pushd bpf
           pushd bpf
-          cargo +nightly fmt --all -- --check
+          cargo fmt --all -- --check
           popd
           popd
 
 
       - name: Run clippy
       - name: Run clippy
         run: |
         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
           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
           popd