Skip to content

Commit

Permalink
Add Cargo nono to the ci lint check
Browse files Browse the repository at this point in the history
[Cargo nono](https://github.com/hobofan/cargo-nono) will now be run on
the packages that should be `no_std` compatible.
  • Loading branch information
nick-mobilecoin committed Jul 28, 2022
1 parent da691d3 commit b881576
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ jobs:
- name: Setup rust toolchain
run: rustup show
- run: cargo clippy --all --all-features --locked -- -D warnings
nono:
runs-on: [self-hosted, Linux, small]
container: mobilecoin/rust-sgx-base:latest
steps:
- uses: actions/checkout@v3
- name: Setup rust toolchain
run: rustup show
- name: install nono
run: cargo install cargo-nono
# `mc-sgx-quote-verify` should be `no_std`, but it isn't yet. See #34
- run: |
cargo metadata --no-deps --format-version=1 | \
jq -r '.packages[].name' | \
grep -v -e mc-sgx-core-build -e mc-sgx-quote-verify -e mc-sgx-urts | \
xargs -n1 sh -c 'cargo nono check --package $0 || exit 255'

0 comments on commit b881576

Please sign in to comment.