Skip to content

Commit b0bce33

Browse files
authored
Merge pull request #908 from opentensor/devnet-ready
deploy evm to devnet
2 parents d70b8e2 + 6136f7b commit b0bce33

30 files changed

+4098
-1175
lines changed

.github/workflows/cargo-audit.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: cargo audit
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- synchronize
8+
concurrency:
9+
group: cargo-audit-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
cargo-audit:
14+
name: cargo audit
15+
runs-on: SubtensorCI
16+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
17+
steps:
18+
- name: Check-out repositoroy under $GITHUB_WORKSPACE
19+
uses: actions/checkout@v4
20+
21+
- name: Install dependencies
22+
run: |
23+
sudo apt-get update &&
24+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
25+
26+
- name: Install Rust Stable
27+
uses: actions-rs/[email protected]
28+
with:
29+
toolchain: stable
30+
components: rustfmt, clippy
31+
profile: minimal
32+
33+
- name: Utilize Shared Rust Cache
34+
uses: Swatinem/[email protected]
35+
with:
36+
key: ubuntu-latest-${{ env.RUST_BIN_DIR }}
37+
38+
- name: Install cargo-audit
39+
run: cargo install --version 0.20.1 cargo-audit
40+
41+
- name: cargo audit
42+
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this

.github/workflows/check-rust.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -208,37 +208,6 @@ jobs:
208208

209209
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
210210
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
211-
# runs cargo audit
212-
cargo-audit:
213-
name: cargo audit
214-
runs-on: SubtensorCI
215-
if: ${{ github.event_name != 'push' && !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
216-
steps:
217-
- name: Check-out repositoroy under $GITHUB_WORKSPACE
218-
uses: actions/checkout@v4
219-
220-
- name: Install dependencies
221-
run: |
222-
sudo apt-get update &&
223-
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
224-
225-
- name: Install Rust Stable
226-
uses: actions-rs/[email protected]
227-
with:
228-
toolchain: stable
229-
components: rustfmt, clippy
230-
profile: minimal
231-
232-
- name: Utilize Shared Rust Cache
233-
uses: Swatinem/[email protected]
234-
with:
235-
key: ubuntu-latest-${{ env.RUST_BIN_DIR }}
236-
237-
- name: Install cargo-audit
238-
run: cargo install cargo-audit
239-
240-
- name: cargo audit
241-
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
242211

243212
# runs cargo test --workspace
244213
cargo-test:

0 commit comments

Comments
 (0)