-
Notifications
You must be signed in to change notification settings - Fork 794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force new cargo and target caching to fix CI #1023
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -46,14 +46,14 @@ jobs: | |
# these represent dependencies downloaded by cargo | ||
# and thus do not depend on the OS, arch nor rust version. | ||
path: /github/home/.cargo | ||
key: cargo-cache2- | ||
key: cargo-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
# these represent compiled steps of both dependencies and arrow | ||
# and thus are specific for a particular OS, arch and rust version. | ||
path: /github/home/target | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}- | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}- | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
@@ -91,13 +91,13 @@ jobs: | |
with: | ||
path: /github/home/.cargo | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: cargo-cache2- | ||
key: cargo-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/target | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
@@ -147,14 +147,12 @@ jobs: | |
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/.cargo | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: cargo-cache2- | ||
key: cargo-nightly-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/target | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-nightly-cache3-${{ matrix.rust }} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
@@ -223,13 +221,13 @@ jobs: | |
with: | ||
path: /github/home/.cargo | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: cargo-cache2- | ||
key: cargo-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/target | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
@@ -277,13 +275,13 @@ jobs: | |
with: | ||
path: /home/runner/.cargo | ||
# this key is not equal because the user is different than on a container (runner vs github) | ||
key: cargo-coverage-cache- | ||
key: cargo-coverage-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/target | ||
# this key is not equal because coverage uses different compilation flags. | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-coverage-cache-${{ matrix.rust }}- | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-coverage-cache3-${{ matrix.rust }}- | ||
- name: Run coverage | ||
run: | | ||
export CARGO_HOME="/home/runner/.cargo" | ||
|
@@ -324,13 +322,12 @@ jobs: | |
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/.cargo | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: cargo-cache2- | ||
key: cargo-wasm32-cache3- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make the naming consistent (already uses a different target cache, below) |
||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/target | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-wasm32-cache-${{ matrix.rust }} | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-wasm32-cache3-${{ matrix.rust }} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
@@ -366,13 +363,13 @@ jobs: | |
with: | ||
path: /github/home/.cargo | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: cargo-cache2- | ||
key: cargo-cache3- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /github/home/target | ||
# this key equals the ones on `linux-build-lib` for re-use | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }} | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given this job is using nightly and some comments suggested rustc was getting confused about what could be reused / not ensure this target isn't shared with stable versions