add wasmldr to `lint` workflows
Adds the following lint jobs for wasmldr:
* cargo fmt
* cargo clippy
* cargo readme
* cargo deny
@@ -23,6 +23,7 @@ jobs:
- {name: enarx, path: Cargo.toml}
- {name: shim-sgx, path: internal/shim-sgx/Cargo.toml}
- {name: shim-sev, path: internal/shim-sev/Cargo.toml}
+ - {name: wasmldr, path: internal/wasmldr/Cargo.toml}
clippy:
name: cargo clippy (${{ matrix.crate.name }})
@@ -53,6 +54,9 @@ jobs:
- name: shim-sev
path: internal/shim-sev/Cargo.toml
target: --target=x86_64-unknown-linux-musl
+ - name: wasmldr
+ path: internal/wasmldr/Cargo.toml
+ target: --target=x86_64-unknown-linux-musl
clippy-single-backends:
name: cargo clippy (enarx ${{ matrix.backend.name }} ${{ matrix.profile.name }})
@@ -88,7 +92,7 @@ jobs:
flag: --release
readme:
- name: cargo readme
+ name: cargo readme (${{matrix.crate.name}})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -98,7 +102,13 @@ jobs:
profile: minimal
override: true
- run: cargo install cargo-readme
- - run: cargo readme > README.md && git diff --exit-code
+ - run: cargo readme --project-root ${{ matrix.crate.path }} > ${{ matrix.crate.path}}/README.md && git diff --exit-code
+ strategy:
+ fail-fast: false
+ matrix:
+ crate:
+ - { name: enarx, path: . }
+ - { name: wasmldr, path: internal/wasmldr }
deny:
name: cargo deny
@@ -115,6 +125,7 @@ jobs:
- {name: enarx, path: ./Cargo.toml}
- {name: shim-sgx, path: internal/shim-sgx/Cargo.toml}
- {name: shim-sev, path: internal/shim-sev/Cargo.toml}
+ - {name: wasmldr, path: internal/wasmldr/Cargo.toml}
check-spdx-headers:
runs-on: ubuntu-latest
