From a3af33a3b622e89d7f2d230ce040e03a4c4b2667 Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 12 May 2025 23:33:53 +0800 Subject: [PATCH 1/6] Add rustdocs to GH workflow --- .github/workflows/rustdocs.yml | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/rustdocs.yml diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml new file mode 100644 index 0000000000..88a7d5e70a --- /dev/null +++ b/.github/workflows/rustdocs.yml @@ -0,0 +1,59 @@ +name: rustdocs + +on: + push: + branches: + - devnet-ready + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + 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 "" > target/doc/index.html + - name: Upload documentation + uses: actions/upload-pages-artifact@v1 + with: + path: ./target/doc + + deploy: + needs: build + runs-on: ubuntu-latest + + 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 From 9f9426bd70680cb9985f853d0ecaf4f4eaff9239 Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 12 May 2025 23:39:40 +0800 Subject: [PATCH 2/6] Change build machine to SubtensorCI --- .github/workflows/rustdocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml index 88a7d5e70a..840a1fd267 100644 --- a/.github/workflows/rustdocs.yml +++ b/.github/workflows/rustdocs.yml @@ -10,7 +10,7 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: SubtensorCI steps: - name: Checkout code @@ -44,7 +44,7 @@ jobs: deploy: needs: build - runs-on: ubuntu-latest + runs-on: SubtensorCI permissions: pages: write From bd08ad49f7ce858f80c86dce971e9b20fafba6e1 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 13 May 2025 11:12:55 +0800 Subject: [PATCH 3/6] Update .github/workflows/rustdocs.yml --- .github/workflows/rustdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml index 840a1fd267..62acd6b5da 100644 --- a/.github/workflows/rustdocs.yml +++ b/.github/workflows/rustdocs.yml @@ -3,7 +3,7 @@ name: rustdocs on: push: branches: - - devnet-ready + - main env: CARGO_TERM_COLOR: always From 82f342ef5217ee83260edf699de082116a2ef7a4 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 13 May 2025 15:20:22 +0800 Subject: [PATCH 4/6] Update .github/workflows/rustdocs.yml --- .github/workflows/rustdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml index 62acd6b5da..80a267ac4c 100644 --- a/.github/workflows/rustdocs.yml +++ b/.github/workflows/rustdocs.yml @@ -1,4 +1,4 @@ -name: rustdocs +name: Publish rustdocs on: push: From 0fd75afe33766200b2752c2b03f6dfc72227135b Mon Sep 17 00:00:00 2001 From: Keith Date: Wed, 14 May 2025 21:47:37 +0800 Subject: [PATCH 5/6] Add workflow dispatch to trigger workflow --- .github/workflows/rustdocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rustdocs.yml b/.github/workflows/rustdocs.yml index 80a267ac4c..a58a3a8c2a 100644 --- a/.github/workflows/rustdocs.yml +++ b/.github/workflows/rustdocs.yml @@ -4,6 +4,7 @@ on: push: branches: - main + workflow_dispatch: env: CARGO_TERM_COLOR: always From 9d6117f55c4745db67247259c1194665a2d48ab2 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 15 May 2025 15:23:39 +0800 Subject: [PATCH 6/6] Bump spec version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7bc6f7ece1..e162af4487 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -209,7 +209,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 268, + spec_version: 269, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,