Skip to content

Commit

Permalink
fix(ci): move sccache-action to before installing cargo bins (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 authored Apr 13, 2023
1 parent 237f568 commit e79e33a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Apt Dependencies
uses: nick-fields/retry@v2
with:
Expand All @@ -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/[email protected]
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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- name: Checkout Sources
uses: actions/checkout@v3
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Apt Dependencies
uses: nick-fields/retry@v2
with:
Expand All @@ -39,10 +43,6 @@ jobs:
run: make install-doc-tools
env:
RUSTFLAGS: "-Cstrip=symbols"
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Execute MDBook
run: make mdbook-build
- name: Build rustdoc
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
steps:
- name: Checkout Sources
uses: actions/checkout@v3
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Apt Dependencies
uses: nick-fields/retry@v2
with:
Expand All @@ -66,10 +70,6 @@ jobs:
run: make install-lint-tools-ci
env:
RUSTFLAGS: "-Cstrip=symbols"
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- run: make lint-all
env:
CC: "sccache clang"
Expand Down Expand Up @@ -113,16 +113,16 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Setup sccache
uses: mozilla-actions/[email protected]
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/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: build and install binaries
run: make install
env:
Expand Down

0 comments on commit e79e33a

Please sign in to comment.