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 52099a29c..4e0a8762d 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: @@ -18,13 +18,16 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: stable - 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 + 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