-
Notifications
You must be signed in to change notification settings - Fork 209
mainnet deploy 5/27/2025 #1634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+23,952
−4,881
Merged
mainnet deploy 5/27/2025 #1634
Changes from all commits
Commits
Show all changes
707 commits
Select commit
Hold shift + click to select a range
ef14fc4
update weight values for v2
JohnReedV 7a88828
bump spec
JohnReedV 3935399
update more weight values
JohnReedV 7c78a10
update weight
JohnReedV 50b00c1
update test
JohnReedV ff8c1f2
put migration in hook
open-junius b311ee1
remove wrong imports
open-junius e5b269b
Debug
keithtensor aae7de2
fix update_cap/update_min_deposit minimum value check
l0r1s 0b4194e
fix withdraw to restrict from the origin and not someone else
l0r1s 0fbc067
Merge branch 'devnet-ready' into yuma4-update-to-upstream
camfairchild 93d7d7f
fixed withdraw logic for creator
l0r1s 541d227
Ensure coldkey is signing the tx
keithtensor fd710f7
fix refund/dissolve + tests
l0r1s 121e4f7
fix doc
l0r1s 392e677
Check that the block number associated is correct
keithtensor 3ffc874
Debug
keithtensor 50550ab
update weights
l0r1s da99c5b
fix comments
l0r1s 1c86c67
Merge branch 'devnet-ready' into feat/use-on-chain-subnet-identity
camfairchild ca4d2ef
fmt
camfairchild e906b32
bump spec_version
l0r1s 14a86cd
Update get_max_amount_* methods.
shamil-gadelshin a6e7de8
Compare bytes
keithtensor e98df7e
Merge pull request #1552 from opentensor/feat/stake-limit-precompiles
sam0x17 fe58185
Merge pull request #1584 from opentensor/upgrade-subtensor-benchmarks-v2
sam0x17 aa4ac19
update weights
JohnReedV b119199
remove migration
camfairchild 63b72bb
remove comment
camfairchild 2dca834
Merge pull request #1501 from opentensor/feat/use-on-chain-subnet-ide…
sam0x17 21fb6a5
Merge pull request #1587 from opentensor/l0r1s/fix-crowdloan-logic-is…
sam0x17 153e3da
add event for yuma3 toggle
camfairchild 9f91dad
Debug
keithtensor cb46c82
Ensure signature is in EIP191 format
keithtensor 4e6c6b6
Remove unused imports
keithtensor 2958ba9
Merge branch 'devnet-ready' into add-stake-limit-fix
shamil-gadelshin 7748b8e
Merge branch 'devnet-ready' into add-stake-limit-fix
shamil-gadelshin a4794f9
Update benchmarks to V2 after merge.
shamil-gadelshin e6d17ca
Introduce SameSubnetId error for move and swap stake extrinsics.
shamil-gadelshin 76d6c36
Ensure recovery ID of signature is normalized to 0 or 1
keithtensor ef5ce60
Satisfy linters
keithtensor 8295710
Restore package.json
keithtensor 4f192d5
script benchmarks all pallets
JohnReedV 7086664
update dispatch weights for admin-utils
JohnReedV aba5d9f
update admin-utils weights
JohnReedV c2830ec
update weight
JohnReedV 91134bf
add commitments benchmarks
JohnReedV 3e08baf
add commitments weights
JohnReedV 42bf08b
update commitments weights again
JohnReedV 888ea8e
raise tolerance threshold 10% => 15%
JohnReedV a40792d
update drand weights
JohnReedV 1d50da2
update drand writes
JohnReedV 9dc13bd
use benchmarks runner instead of SubtensorCI
JohnReedV f9fa3cf
remove crowdloan from `validate-benchmarks`
JohnReedV b97326b
Merge branch 'devnet-ready' into precompile-uid-lookup
JohnReedV e398731
Merge pull request #1580 from opentensor/feat/allow-reschedule-failed…
open-junius 3d3796c
Update comments.
shamil-gadelshin 8efe071
Merge pull request #1518 from opentensor/precompile-uid-lookup
keithtensor c28ecc6
chore: fmt
camfairchild 487c231
added log crate to crowdloan
l0r1s 39cea2a
keep track of contributors count and allow a maximum of contributors,…
l0r1s 203a8a3
fix tests
l0r1s ea8700e
added MaxContributors to runtime
l0r1s 6ec5d63
fix migration name
l0r1s c0f5129
Add `start-call` patch for non-fast-blocks node
basfroman 1fe18cb
bumping spec_version
basfroman d49c04e
added migration test
l0r1s 6b37119
cargo clippy
l0r1s 96cdf64
cargo fmt
l0r1s b4acaf8
Merge pull request #1577 from opentensor/add-stake-limit-fix
sam0x17 a4a2bd2
Merge pull request #1592 from opentensor/feat/roman/add-start-call-pa…
sam0x17 9d9f384
Merge pull request #1585 from opentensor/benchmark-all-pallets
sam0x17 83ad744
remove deprecated commitments storage
JohnReedV 85fac14
fmt
JohnReedV ef47e7a
remove deprecated benchmark
JohnReedV 5a6acbf
add migrate_remove_commitments_rate_limit
JohnReedV 17715c1
add test_migrate_remove_commitments_rate_limit
JohnReedV 6f57b8c
fmt
JohnReedV 0ac6ea8
remove rate limit config
JohnReedV 2db3c7d
clippy
JohnReedV 84d185a
don't fully remove
JohnReedV 759052e
ci: bump CI
JohnReedV e3156db
add to StakingHotkeys on inc stake
camfairchild 580d42e
Merge pull request #1595 from opentensor/remove-deprecated-commitment…
sam0x17 92a4779
Merge pull request #1596 from opentensor/fix/add-to-staking-hotkeys-o…
sam0x17 2ff2b94
Ensure we only reset BondsMovingAverage to 975000 only if it exceeds
keithtensor 6f49d83
reapply Cargo.lock from devnet-ready
l0r1s 9e475e1
Merge branch 'devnet-ready' into feat/yuma3
l0r1s 825f793
Merge branch 'devnet-ready' into check-same-netuids
shamil-gadelshin ae2d1f0
Merge branch 'devnet-ready' into l0r1s/crowdloan-contributors-limit
l0r1s 016e7f3
propagate log/std in Cargo.toml
l0r1s 2665274
Fixes
keithtensor d924289
cargo fmt
keithtensor 632c1c9
Update benchmark weights
shamil-gadelshin 991832c
ignore test that takes CLI input
camfairchild bcfebc4
Merge pull request #1598 from opentensor/fix-bonds-moving-average-reset
sam0x17 48a87e2
Rename error SameSubnetId -> SameNetuid
shamil-gadelshin 08dd35e
move contributors count to Crowdloan struct and update migration
l0r1s e79e783
fix benchmark
l0r1s 3f565fb
fix arithmetic
l0r1s 3bebc53
fix name of storage value in evm test
camfairchild a58750f
extend patch step for localnet docker image
basfroman c9322a0
bumping spec_version
basfroman c059205
Merge pull request #1603 from opentensor/feat/roman/extend-patch-for-…
sam0x17 9a44538
add set yuma3 enabled to ABI
camfairchild 79490d3
added freeze_struct to OldCrowdloanInfo
l0r1s 8215998
Merge branch 'feat/yuma3' into feat/emit-event-on-yuma3-enable
l0r1s d3736c2
upgrade polkadot sdk to polkadot-stable2409-7 and frontier to last ma…
l0r1s dc7eb20
fix EvmBalance/SubstrateBalance issues
l0r1s d8e6c56
fix frontier dependencies commit hash + added fc-aura
l0r1s 0e603a4
fix tests
l0r1s 70d01dc
cargo fmt
l0r1s c085c39
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s 32b124f
Merge branch 'devnet-ready' into l0r1s/crowdloan-contributors-limit
l0r1s 2e2bc58
Merge pull request #1605 from opentensor/feat/emit-event-on-yuma3-enable
sam0x17 067cd62
change frontier commit hash following frontier upgrade
l0r1s 0b0dfd1
Merge pull request #1588 from opentensor/check-same-netuids
sam0x17 26ea39a
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s b7f2fbb
Merge pull request #1591 from opentensor/l0r1s/crowdloan-contributors…
sam0x17 89278bb
remove direct indexing
camfairchild ca5d4b2
have Dockerfile use a local user instead of root
sam0x17 5f43a5f
clean up
sam0x17 ef3698a
Merge pull request #1610 from opentensor/sam-make-docker-secure
sam0x17 f8b239b
only respect the `skip-validate-benchmarks` label
JohnReedV f15a42f
update exit code
JohnReedV f5eec3b
stop moving on in skip case
JohnReedV 7df461b
update names
JohnReedV 4c62519
rerun on label removed
JohnReedV 3b9b9b2
fix?
JohnReedV 57a8290
fix??
JohnReedV c75a1ac
fix?
JohnReedV 0ab04ce
oops
JohnReedV 79d16e8
fix?
JohnReedV b637720
revert rerun
JohnReedV df21554
Ensure we only reset BondsMovingAverage to 975000 only if it exceeds
keithtensor 8bec162
Fixes
keithtensor 4610c8b
cargo fmt
keithtensor 8493bbf
Introduce SameSubnetId error for move and swap stake extrinsics.
shamil-gadelshin f974a94
Rename error SameSubnetId -> SameNetuid
shamil-gadelshin 5862a43
keep track of contributors count and allow a maximum of contributors,…
l0r1s 774a5fc
fix tests
l0r1s d347707
fix migration name
l0r1s 017f3ff
added migration test
l0r1s 2918789
cargo clippy
l0r1s ae65d49
cargo fmt
l0r1s d3c05ee
move contributors count to Crowdloan struct and update migration
l0r1s 677749a
fix benchmark
l0r1s 8d23896
fix arithmetic
l0r1s f736382
added freeze_struct to OldCrowdloanInfo
l0r1s b43e332
have Dockerfile use a local user instead of root
sam0x17 7ca5bcb
clean up
sam0x17 04a86f8
add yuma4 scenario test
andreea-popescu-reef 4a16441
fix alpha values
andreea-popescu-reef 5cd7527
tests cleanup
andreea-popescu-reef 1b541e6
add BondsResetOn param
andreea-popescu-reef 5d14a1b
add OnMetadataCommitment hook
andreea-popescu-reef c054429
add bonds reset
andreea-popescu-reef 249901a
add ResetBondsFlag check for set_commitment
andreea-popescu-reef 6222e21
fix bonds reset
andreea-popescu-reef 59bcbf1
fix rebase
andreea-popescu-reef 6ae811b
increased commitment fields to allow for reset_bonds flag
andreea-popescu-reef f122920
add LastBondsReset tracking
andreea-popescu-reef bd8a26b
Merge branch 'devnet-ready' into feat/yuma3
camfairchild 9bcf700
remove comment
JohnReedV a35a6d5
fix?
JohnReedV d92946e
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s 0f9c291
Merge pull request #1593 from opentensor/feat/yuma3
sam0x17 c91987b
remove unneeded step
JohnReedV 8162058
bump CI
JohnReedV 9db9dd9
add CLI step
JohnReedV 4920ad8
fix
JohnReedV 9d12f6c
Update run-benchmarks.yml
JohnReedV 39daeee
Merge pull request #1607 from opentensor/l0r1s/upgrade-polkadot-sdk-t…
sam0x17 b2e7ba5
Merge remote-tracking branch 'origin/devnet-ready' into feat/reset-bo…
sam0x17 0194c28
Merge pull request #1612 from opentensor/feat/reset-bonds-on-commitment
sam0x17 3c4d403
Merge remote-tracking branch 'origin/devnet-ready' into validate-benc…
sam0x17 987cd4b
bump
sam0x17 ecd3444
Merge pull request #1611 from opentensor/validate-benchmarks-only-res…
sam0x17 74d7f99
Merge pull request #1617 from opentensor/devnet-ready
sam0x17 026a292
add `./scripts/localnet_patch.sh` file
basfroman 61cde66
update `.github/workflows/docker-localnet.yml` workflow
basfroman fcf2e4e
bump spec version
basfroman 827e971
Merge pull request #1622 from opentensor/feat/roman/move-patcher-to-file
sam0x17 5f312e9
not check rate limit for reduce child take
open-junius cc31e65
cargo clippy
open-junius 45f66a1
cargo fmt
open-junius 5e43402
update benchmark
open-junius a3af33a
Add rustdocs to GH workflow
keithtensor 7fd4300
remove the duplicated variant from the type info
l0r1s 9f9426b
Change build machine to SubtensorCI
keithtensor 4340fb9
Merge pull request #1626 from opentensor/fix/yuma3-polkadotjs-bug
sam0x17 81cd50b
Merge pull request #1627 from opentensor/devnet-ready
sam0x17 3d99afc
Add UidLookupPrecompile address to used_address
keithtensor bd08ad4
Update .github/workflows/rustdocs.yml
keithtensor 82f342e
Update .github/workflows/rustdocs.yml
keithtensor 2ecebb1
Ensure stake threshold is respected when handing out vpermits
keithtensor 4e3f374
Set stake threshold to 0 in commit reveal test
keithtensor 17a81ad
Set validator stake to 1 during testing
keithtensor f8f0aef
multiple fields
JohnReedV 63da433
multiple fields tests
JohnReedV 5c718cc
increase limit
JohnReedV e81010c
clippy
JohnReedV fb2e935
bump spec
JohnReedV 9f84e14
Merge pull request #1581 from opentensor/devnet
sam0x17 0fd75af
Add workflow dispatch to trigger workflow
keithtensor 1aef843
Merge pull request #1633 from opentensor/Multiple-Fields-Per-Commitment-
sam0x17 0b5dcc7
add BigRaw
JohnReedV 2290f1e
update tests for BigRaw
JohnReedV 33c4124
fmt
JohnReedV 68af465
fix test
JohnReedV 3f510c7
update comments
JohnReedV 6597e3c
clippy
JohnReedV 9d6117f
Bump spec version
keithtensor c1c8fd0
Disable aggregated extrinsics.
shamil-gadelshin b7d7b08
Remove fee payment for associate_evm_key
keithtensor 232dd4c
Merge pull request #1640 from opentensor/remove-associate-evm-keys-fee
keithtensor efd2898
Merge pull request #1641 from opentensor/comment-aggregated-stake-ext…
sam0x17 1bcbc22
Merge remote-tracking branch 'origin/devnet-ready' into vpermit-respe…
keithtensor 5e76180
Merge pull request #1625 from opentensor/rustdocs
sam0x17 fbc809d
Merge pull request #1638 from opentensor/Add-BigRaw-Commitments-Variant
sam0x17 3d3444f
Merge remote-tracking branch 'origin/devnet-ready' into uid-lookup-pr…
keithtensor dc92bad
Fix up a comment to reflect what the code is doing
keithtensor 9fe7c7d
Merge pull request #1642 from opentensor/devnet-ready
sam0x17 dc8d26c
Bump spec version
keithtensor 06146ed
Merge pull request #1643 from opentensor/fix-comment
sam0x17 ee7bad9
Merge pull request #1644 from opentensor/devnet
sam0x17 5d96ce2
Merge branch 'devnet-ready' into remove-rate-limit-reduce-take
open-junius e5653ee
Merge pull request #1624 from opentensor/remove-rate-limit-reduce-take
open-junius 82f50ec
Merge pull request #1628 from opentensor/uid-lookup-precompile-fix
keithtensor fd70d5d
Merge pull request #1629 from opentensor/vpermit-respect-min-stake
sam0x17 299f9f5
remove ensure, fix tests, add test
camfairchild 7c447a9
bump spec
camfairchild 599ac71
add registration to positive test and negative test
camfairchild 4ccb847
decrement reads
JohnReedV 3ee10a9
Merge pull request #1652 from opentensor/fix/burn-reg-w-sn-token-disa…
sam0x17 70a77f5
Merge pull request #1653 from opentensor/devnet-ready
sam0x17 35e4c6e
udpate readme
open-junius 26267f5
Merge pull request #1655 from opentensor/devnet
sam0x17 c34c688
fix everything
sam0x17 ed91975
bump spec
sam0x17 cd36344
Merge pull request #1669 from opentensor/fix-everything-devnet
sam0x17 043e607
Merge pull request #1657 from opentensor/fix-readme-evm-test
sam0x17 186024f
Merge remote-tracking branch 'origin/main' into backpropagate-hotfixe…
sam0x17 42cf955
Merge pull request #1689 from opentensor/backpropagate-hotfixes-5-27-…
sam0x17 417f1bb
Merge pull request #1690 from opentensor/devnet-ready
sam0x17 1db0213
bump spec version
sam0x17 cad0ebc
Merge remote-tracking branch 'origin/devnet-ready' into devnet
sam0x17 d5a161b
Merge pull request #1692 from opentensor/devnet
sam0x17 a6f5f42
hotfix rust version
sam0x17 9fe45c5
Merge remote-tracking branch 'origin/devnet' into testnet
sam0x17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: EVM E2E Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
## Allow running workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
verbose: | ||
description: "Output more information when triggered manually" | ||
required: false | ||
default: "" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
VERBOSE: ${{ github.events.input.verbose }} | ||
|
||
jobs: | ||
run: | ||
runs-on: SubtensorCI | ||
env: | ||
RUST_BACKTRACE: full | ||
steps: | ||
- name: Check-out repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "22" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler nodejs | ||
|
||
- name: Run tests | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
npm install --global yarn | ||
./evm-tests/run-ci.sh | ||
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# .github/workflows/benchmarks.yml | ||
name: Validate-Benchmarks | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: run-benchmarks-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
validate-benchmarks: | ||
runs-on: Benchmarking | ||
|
||
env: | ||
SKIP_BENCHMARKS: '0' | ||
|
||
steps: | ||
- name: Check out PR branch | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Install GitHub CLI | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gh | ||
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | ||
|
||
- name: Check skip label | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label found — skipping benchmarks." | ||
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" | ||
fi | ||
|
||
- name: Install system dependencies | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
|
||
- name: Check skip label | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label found — skipping benchmarks." | ||
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" | ||
fi | ||
|
||
- name: Install Rust toolchain | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Check skip label | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label found — skipping benchmarks." | ||
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" | ||
fi | ||
|
||
- name: Cache Rust build | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: bench-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Check skip label | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label found — skipping benchmarks." | ||
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" | ||
fi | ||
|
||
- name: Build node with benchmarks | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
cargo build --profile production -p node-subtensor --features runtime-benchmarks | ||
|
||
- name: Check skip label | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label found — skipping benchmarks." | ||
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" | ||
fi | ||
|
||
- name: Run & validate benchmarks | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
chmod +x scripts/benchmark_action.sh | ||
./scripts/benchmark_action.sh | ||
|
||
- name: Check skip label after run | ||
if: ${{ env.SKIP_BENCHMARKS != '1' }} | ||
run: | | ||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') | ||
if echo "$labels" | grep -q "skip-validate-benchmarks"; then | ||
echo "skip-validate-benchmarks label was found — but benchmarks already ran." | ||
fi | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Publish rustdocs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: SubtensorCI | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install rustup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Generate documentation | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --document-private-items | ||
|
||
- name: Fix file permissions | ||
shell: sh | ||
run: | | ||
chmod -c -R +rX "target/doc" | | ||
while read line; do | ||
echo "::warning title=Invalid file permissions automatically fixed::$line" | ||
done | ||
- name: Generate index.html file | ||
run: | | ||
echo "<meta http-equiv=refresh content=0;url=wasm_oidc_plugin/index.html>" > target/doc/index.html | ||
- name: Upload documentation | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: ./target/doc | ||
|
||
deploy: | ||
|
||
needs: build | ||
runs-on: SubtensorCI | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.pages.outputs.page_url }} | ||
|
||
steps: | ||
- name: Deploy documentation | ||
id: pages | ||
uses: actions/deploy-pages@v2 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.