From ee7e94fe052db9d2e6c711ac515b23b3eeb74159 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 May 2022 21:57:58 -0500 Subject: [PATCH 01/21] chore: add submodules to fix docs deps issue --- .github/workflows/publish-docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 52099a29c..8da651ae8 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -8,7 +8,7 @@ on: jobs: docs: - if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' + # if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' name: docs runs-on: ubuntu-20.04 steps: @@ -23,6 +23,9 @@ jobs: - name: Update apt repositories run: sudo apt update + - name: Fetch submodule deps + run: git submodule update --init --recursive + - name: Build documentation run: cargo doc --no-deps - name: Publish documentation From 61eeb4f096f8370705a24440b6653ca8b58903d8 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 May 2022 22:13:33 -0500 Subject: [PATCH 02/21] chore: use stable --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 8da651ae8..b624b2ee5 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -18,7 +18,7 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: stable - name: Update apt repositories run: sudo apt update From 50b5793e4c7552c6766e4101567d2fbd8f0df4ea Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 May 2022 22:46:04 -0500 Subject: [PATCH 03/21] chore: run with backtrace, succeeds locally fails in ci --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index b624b2ee5..e1a6be19b 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: cargo doc --no-deps + run: RUST_BACKTRACE=1 cargo doc --no-deps - name: Publish documentation run: | cd target/doc From cd3396573be2e1393a441af64bfef23204991b1d Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 24 May 2022 09:36:18 -0500 Subject: [PATCH 04/21] chore: exclude webb-client package in doc publishing --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index e1a6be19b..2b367be5b 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps + run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client - name: Publish documentation run: | cd target/doc From 649332cb03f6c42e142f061b40227866f3f4f6c8 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 24 May 2022 09:54:42 -0500 Subject: [PATCH 05/21] chore: exclude orml package in doc publishing --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 2b367be5b..a0a271735 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/utilities --exclude open-runtime-module-library/currencies --exclude open-runtime-module-library/tokens --exclude open-runtime-module-library/traits - name: Publish documentation run: | cd target/doc From ac02fc494fd3df2d15f0c435c82f0be46a56f45d Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:26:24 -0500 Subject: [PATCH 06/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index a0a271735..5bdbe5179 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/utilities --exclude open-runtime-module-library/currencies --exclude open-runtime-module-library/tokens --exclude open-runtime-module-library/traits + run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/**/* - name: Publish documentation run: | cd target/doc From 202ce1fe1a68eb18621e5f253ed6e701c9957528 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:30:42 -0500 Subject: [PATCH 07/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 5bdbe5179..dffa94c32 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/**/* + run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/* - name: Publish documentation run: | cd target/doc From cf615602f7eff76c06f580b10b37e5e744e569bc Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:34:58 -0500 Subject: [PATCH 08/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index dffa94c32..95cc1eea8 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --all --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/* + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* - name: Publish documentation run: | cd target/doc From 756c398dae30e5c3c4c3838b37f74713168e1d04 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:37:56 -0500 Subject: [PATCH 09/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 95cc1eea8..f4800168f 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/* - name: Publish documentation run: | cd target/doc From 1196c651701f7be9ca7d134c2f0bc3b47ac9e43e Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:39:28 -0500 Subject: [PATCH 10/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index f4800168f..c978335d9 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/* + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md' - name: Publish documentation run: | cd target/doc From f290afd26528953bb50a69ec3ecc4dacff0eda1e Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:42:41 -0500 Subject: [PATCH 11/21] chore: fix docs --- .github/workflows/ci.yml | 5 +++++ .github/workflows/coverage.yaml | 7 ++++++- .github/workflows/publish-docs.yml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c252ae34a..3bee81440 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,11 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c68eccb85..c66587c66 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -16,12 +16,17 @@ jobs: coverage: name: coverage runs-on: ubuntu-latest - + container: image: xd009642/tarpaulin:develop-nightly options: --security-opt seccomp=unconfined steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - name: Checkout repository uses: actions/checkout@v2 diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index c978335d9..dc211f60e 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --all-features --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md' + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md' - name: Publish documentation run: | cd target/doc From 27056fa41f101ab8c897a042f81135b855afbd82 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:45:08 -0500 Subject: [PATCH 12/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index dc211f60e..e3bd11b92 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md' + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md - name: Publish documentation run: | cd target/doc From c0a384d7d0819e8e59755b0a1ad08e300344d089 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:56:02 -0500 Subject: [PATCH 13/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index e3bd11b92..407998e0d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude webb-client --exclude open-runtime-module-library/**/* --exclude open-runtime-module-library/auction/README.md + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude webb-client --exclude open-runtime-module-library/** --exclude open-runtime-module-library/auction/README.md - name: Publish documentation run: | cd target/doc From c656fea1e1e3fb2dbd0b6110a9026ab5d1a5d3d4 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 10:56:39 -0500 Subject: [PATCH 14/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 407998e0d..8a2e73148 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude webb-client --exclude open-runtime-module-library/** --exclude open-runtime-module-library/auction/README.md + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude webb-client - name: Publish documentation run: | cd target/doc From d9550eda20d8f4a2718a031b3720bf27017d8eaa Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:06:10 -0500 Subject: [PATCH 15/21] chore: fix docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 8a2e73148..46ccc1d8a 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude webb-client - name: Publish documentation run: | cd target/doc From 5a1232a772ecec2873dd83b3851e228adbd7d5c6 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:10:05 -0500 Subject: [PATCH 16/21] chore: update docs --- .github/workflows/publish-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 46ccc1d8a..d24438e50 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -23,11 +23,11 @@ jobs: - name: Update apt repositories run: sudo apt update - - name: Fetch submodule deps - run: git submodule update --init --recursive + # - name: Fetch submodule deps + # run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude webb-client - name: Publish documentation run: | cd target/doc From eec08048c017978c32c6c5d5a5b9c90eae1828b9 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:12:11 -0500 Subject: [PATCH 17/21] chore: update docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index d24438e50..7a1e14a94 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: # run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/** --exclude webb-client - name: Publish documentation run: | cd target/doc From b9fef74b452bb67d530a69337d2779297a504e0d Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:14:20 -0500 Subject: [PATCH 18/21] chore: update docs --- .github/workflows/publish-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 7a1e14a94..55133a3a5 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -23,11 +23,11 @@ jobs: - name: Update apt repositories run: sudo apt update - # - name: Fetch submodule deps - # run: git submodule update --init --recursive + - name: Fetch submodule deps + run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/** --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude "open-runtime-module-library/**" --exclude webb-client - name: Publish documentation run: | cd target/doc From 75d2119fb33b04890cb8e7d3d67dacfefec6d7d5 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:23:37 -0500 Subject: [PATCH 19/21] chore: update docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 55133a3a5..52a4fb5da 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude "open-runtime-module-library/**" --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/** --exclude ./open-runtime-module-library/utilities --exclude webb-client - name: Publish documentation run: | cd target/doc From 770a25e0eb31cf068ab60a0a605fa154d9debb7c Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:27:36 -0500 Subject: [PATCH 20/21] chore: update docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 52a4fb5da..0dbdb5faa 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/** --exclude ./open-runtime-module-library/utilities --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude ./open-runtime-module-library/utilities --exclude webb-client - name: Publish documentation run: | cd target/doc From 4cd41b4037b40bb29e3411281c7c32bddd404f31 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Wed, 25 May 2022 11:31:50 -0500 Subject: [PATCH 21/21] chore: update docs --- .github/workflows/publish-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 0dbdb5faa..4e0a8762d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -27,7 +27,7 @@ jobs: run: git submodule update --init --recursive - name: Build documentation - run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/** --exclude ./open-runtime-module-library/utilities --exclude webb-client + run: RUST_BACKTRACE=1 cargo doc --all-features --no-deps --release --workspace --exclude open-runtime-module-library/LICENSE --exclude open-runtime-module-library/currencies --exclude open-runtime-module-library/traits --exclude ./open-runtime-module-library/utilities --exclude webb-client - name: Publish documentation run: | cd target/doc