Skip to content

Commit

Permalink
Merge branch 'devnet-ready' into feat/runtime-apis-return-types
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Oct 15, 2024
2 parents 2e24677 + 76eee08 commit add4fc4
Show file tree
Hide file tree
Showing 54 changed files with 1,285 additions and 669 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,47 @@ jobs:

- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
# runs cargo audit
cargo-audit:
name: cargo audit
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- stable
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
steps:
- name: Check-out repositoroy under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Install Rust ${{ matrix.rust-branch }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt, clippy
profile: minimal

- name: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: Install cargo-audit
run: cargo install cargo-audit

- name: cargo audit
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this

# runs cargo test --workspace
cargo-test:
name: cargo test
Expand Down
Loading

0 comments on commit add4fc4

Please sign in to comment.