-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): move sccache-action to before installing cargo bins (#2760)
- Loading branch information
1 parent
237f568
commit e79e33a
Showing
3 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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" | ||
|
@@ -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: | ||
|