Skip to content

Commit

Permalink
REVERT ME: try removing cache from test/lint steps
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Mar 31, 2021
1 parent 8c235c6 commit 031272d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 58 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
node-version: '14'

### BUILD CACHE ###
- name: Cache Cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
env:
cache-name: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
target
key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}
# - name: Cache Cargo registry, target, index
# uses: actions/cache@v2
# id: cache-cargo
# env:
# cache-name: cache-cargo
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/bin
# ~/.cargo/git
# target
# key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}

### UP FROM HERE TO "Checkout Code" is uniform in rust-test.yml, rust-slow-test.yml, and lint.yml!

Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/rust-slow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,30 @@ jobs:
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
env:
cache-name: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
target
key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}
# - name: Cache cargo registry, target, index
# uses: actions/cache@v2
# id: cache-cargo
# env:
# cache-name: cache-cargo
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/bin
# ~/.cargo/git
# target
# key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Cache npm
uses: actions/cache@v2
id: cache-node-modules
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ matrix.build }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.build }}-${{ env.cache-name }}-
${{ matrix.build }}-
# - name: Cache npm
# uses: actions/cache@v2
# id: cache-node-modules
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ matrix.build }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ matrix.build }}-${{ env.cache-name }}-
# ${{ matrix.build }}-

### UP FROM HERE TO "Checkout Code" is uniform in rust-test.yml, rust-slow-test.yml, and lint.yml!

Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,30 @@ jobs:
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
env:
cache-name: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
target
key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}
# - name: Cache cargo registry, target, index
# uses: actions/cache@v2
# id: cache-cargo
# env:
# cache-name: cache-cargo
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/bin
# ~/.cargo/git
# target
# key: ${{ matrix.build }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Cache npm
uses: actions/cache@v2
id: cache-node-modules
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ matrix.build }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.build }}-${{ env.cache-name }}-
${{ matrix.build }}-
# - name: Cache npm
# uses: actions/cache@v2
# id: cache-node-modules
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ matrix.build }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ matrix.build }}-${{ env.cache-name }}-
# ${{ matrix.build }}-

### UP FROM HERE TO "Checkout Code" is uniform in rust-test.yml, rust-slow-test.yml, and lint.yml!

Expand Down

0 comments on commit 031272d

Please sign in to comment.