no longer use action cache restore keys (#1188)

Co-authored-by: Brian Caswell <bmc@shmoo.com>
This commit is contained in:
bmc-msft
2021-08-26 16:51:00 -04:00
committed by GitHub
parent 822fa13667
commit 03dccfacfa

View File

@ -5,7 +5,7 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
SCCACHE_DIR: ${{github.workspace}}/sccache/ SCCACHE_DIR: ${{github.workspace}}/sccache/
SCCACHE_CACHE_SIZE: 1G SCCACHE_CACHE_SIZE: 1G
ACTIONS_CACHE_KEY_DATE: 2021-08-06-01 ACTIONS_CACHE_KEY_DATE: 2021-08-26-01
jobs: jobs:
agent: agent:
@ -21,8 +21,6 @@ jobs:
~/.cargo/git ~/.cargo/git
~/.cargo/bin ~/.cargo/bin
key: rust-${{ runner.os }}-${{ env.ACTIONS_CACHE_KEY_DATE }} key: rust-${{ runner.os }}-${{ env.ACTIONS_CACHE_KEY_DATE }}
restore-keys: |
rust-${{ runner.os }}
- name: Install Rust Prereqs - name: Install Rust Prereqs
if: steps.cache-rust-prereqs.outputs.cache-hit != 'true' if: steps.cache-rust-prereqs.outputs.cache-hit != 'true'
shell: bash shell: bash
@ -34,8 +32,6 @@ jobs:
sccache sccache
src/agent/target src/agent/target
key: agent-${{ runner.os }}-${{ hashFiles('src/agent/Cargo.lock') }}-${{ env.ACTIONS_CACHE_KEY_DATE }} key: agent-${{ runner.os }}-${{ hashFiles('src/agent/Cargo.lock') }}-${{ env.ACTIONS_CACHE_KEY_DATE }}
restore-keys: |
agent-${{ runner.os }}
- name: Linux Prereqs - name: Linux Prereqs
run: | run: |
sudo apt-get -y update sudo apt-get -y update
@ -175,8 +171,6 @@ jobs:
~/.cargo/git ~/.cargo/git
~/.cargo/bin ~/.cargo/bin
key: rust-${{ runner.os }}-${{ env.ACTIONS_CACHE_KEY_DATE }} key: rust-${{ runner.os }}-${{ env.ACTIONS_CACHE_KEY_DATE }}
restore-keys: |
rust-${{ runner.os }}
- name: Install Rust Prereqs - name: Install Rust Prereqs
if: steps.cache-rust-prereqs.outputs.cache-hit != 'true' if: steps.cache-rust-prereqs.outputs.cache-hit != 'true'
shell: bash shell: bash
@ -188,8 +182,6 @@ jobs:
sccache sccache
src/proxy-manager/target src/proxy-manager/target
key: proxy-${{ runner.os }}-${{ hashFiles('src/proxy-manager/Cargo.lock') }}-${{ env.ACTIONS_CACHE_KEY_DATE }} key: proxy-${{ runner.os }}-${{ hashFiles('src/proxy-manager/Cargo.lock') }}-${{ env.ACTIONS_CACHE_KEY_DATE }}
restore-keys: |
proxy-${{ runner.os }}
- run: src/ci/proxy.sh - run: src/ci/proxy.sh
- uses: actions/upload-artifact@v2.2.2 - uses: actions/upload-artifact@v2.2.2
with: with: