diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7c0623679fc4..a0b19d62587d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,6 +19,10 @@ jobs: uses: actions/checkout@v3 with: submodules: true + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.3 + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} + continue-on-error: true - name: Apt Dependencies uses: nick-fields/retry@v2 with: @@ -28,10 +32,6 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: "node/forest_libp2p/bitswap/tests/go-app/go.mod" - - name: Setup sccache - uses: mozilla-actions/sccache-action@v0.0.3 - timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} - continue-on-error: true - name: Run cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 433670c04c78..2e50172a1da1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,6 +22,10 @@ jobs: steps: - name: Checkout Sources uses: actions/checkout@v3 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.3 + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} + continue-on-error: true - name: Apt Dependencies uses: nick-fields/retry@v2 with: @@ -39,10 +43,6 @@ jobs: run: make install-doc-tools env: RUSTFLAGS: "-Cstrip=symbols" - - name: Setup sccache - uses: mozilla-actions/sccache-action@v0.0.3 - timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} - continue-on-error: true - name: Execute MDBook run: make mdbook-build - name: Build rustdoc diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 829fbfdf6ef8..63a2e7b16228 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -53,6 +53,10 @@ jobs: steps: - name: Checkout Sources uses: actions/checkout@v3 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.3 + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} + continue-on-error: true - name: Apt Dependencies uses: nick-fields/retry@v2 with: @@ -66,10 +70,6 @@ jobs: run: make install-lint-tools-ci env: RUSTFLAGS: "-Cstrip=symbols" - - name: Setup sccache - uses: mozilla-actions/sccache-action@v0.0.3 - timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} - continue-on-error: true - run: make lint-all env: CC: "sccache clang" @@ -113,16 +113,16 @@ jobs: uses: actions/checkout@v3 with: submodules: true + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.3 + timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} + continue-on-error: true - name: Apt Dependencies uses: nick-fields/retry@v2 with: timeout_minutes: 5 max_attempts: 3 command: sudo make install-deps - - name: Setup sccache - uses: mozilla-actions/sccache-action@v0.0.3 - timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }} - continue-on-error: true - name: build and install binaries run: make install env: