-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devnet-ready' into utility-pallet-fees
- Loading branch information
Showing
19 changed files
with
611 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,25 +24,8 @@ jobs: | |
cargo-fmt: | ||
name: cargo fmt | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- nightly-2024-03-05 | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
# RUSTFLAGS: -A warnings | ||
RUST_BACKTRACE: full | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
@@ -51,38 +34,22 @@ jobs: | |
run: sudo apt-get update && sudo apt-get install -y build-essential | ||
|
||
- name: Install Rust Nightly | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
profile: minimal | ||
run: | | ||
rustup install nightly | ||
rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt | ||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: cargo fmt | ||
run: cargo fmt --check --all | ||
run: cargo +nightly fmt --check --all | ||
|
||
cargo-clippy-default-features: | ||
name: cargo clippy | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- stable | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
# RUSTFLAGS: -A warnings | ||
RUST_BACKTRACE: full | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
@@ -94,32 +61,17 @@ jobs: | |
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: cargo clippy --workspace --all-targets -- -D warnings | ||
run: cargo clippy --workspace --all-targets -- -D warnings | ||
|
||
cargo-check-lints: | ||
name: check custom lints | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- stable | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
RUSTFLAGS: -D warnings | ||
RUST_BACKTRACE: full | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
@@ -129,17 +81,8 @@ jobs: | |
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/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: check lints | ||
run: | | ||
|
@@ -150,27 +93,12 @@ jobs: | |
cargo-clippy-all-features: | ||
name: cargo clippy --all-features | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
# RUSTFLAGS: -A warnings | ||
RUST_BACKTRACE: full | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -179,34 +107,17 @@ jobs: | |
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
|
||
# runs cargo test --workspace | ||
# runs cargo test --workspace --all-features | ||
cargo-test: | ||
name: cargo test | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
# RUSTFLAGS: -A warnings | ||
RUST_BACKTRACE: full | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
@@ -216,10 +127,8 @@ jobs: | |
sudo apt-get update && | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
- name: Utilize Rust shared cached | ||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: cargo test --workspace --all-features | ||
run: cargo test --workspace --all-features | ||
|
@@ -228,26 +137,9 @@ jobs: | |
cargo-fix: | ||
name: cargo fix | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- stable | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
# RUSTFLAGS: -A warnings | ||
RUST_BACKTRACE: full | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
SKIP_WASM_BUILD: 1 | ||
TARGET: ${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
@@ -257,10 +149,8 @@ jobs: | |
sudo apt-get update && | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
- name: Utilize Rust shared cached | ||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: cargo fix --workspace | ||
run: | | ||
|
@@ -280,13 +170,16 @@ jobs: | |
runs-on: SubtensorCI | ||
|
||
steps: | ||
- name: Install Zepter | ||
run: cargo install --locked -q zepter && zepter --version | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Dont clone historic commits. | ||
|
||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install Zepter | ||
run: cargo install --locked -q zepter && zepter --version | ||
|
||
- name: Check features | ||
run: zepter run check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,41 +22,20 @@ env: | |
jobs: | ||
run: | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- nightly-2024-03-05 | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
include: | ||
- os: ubuntu-latest | ||
# - os: macos-latest | ||
env: | ||
RELEASE_NAME: development | ||
RUSTV: ${{ matrix.rust-branch }} | ||
RUST_BACKTRACE: full | ||
RUST_BIN_DIR: target/${{ matrix.rust-target }} | ||
TARGET: ${{ matrix.rust-target }} | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- 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 | ||
profile: minimal | ||
|
||
- name: Clone bittensor repo | ||
run: git clone https://github.com/opentensor/bittensor.git | ||
|
||
|
Oops, something went wrong.