Skip to content

Commit 5d87e70

Browse files
committed
Update main.yml
1 parent e708bc5 commit 5d87e70

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,12 @@ jobs:
309309
with:
310310
token: ${{ secrets.GITHUB_TOKEN }}
311311

312-
- name: Install Viceroy
313-
run: |
314-
echo "Install Viceroy 0.2.9..."
315-
wget https://github.com/fastly/Viceroy/releases/download/v0.2.9/viceroy_v0.2.9_linux-amd64.tar.gz
316-
echo "7e1dfea8ebb770d96e449f36227a121fa3bc13fb74ae75d340bc302bcca9cc10eb1c8d9c6defc983a4e81ad4e83efb0c3052d895a5a45348835041e15c9f68a9 viceroy_v0.2.9_linux-amd64.tar.gz" | sha512sum --check
317-
mkdir -p $HOME/bin
318-
tar -xzf viceroy_v0.2.9_linux-amd64.tar.gz --directory $HOME/bin
319-
echo "$HOME/bin" >> $GITHUB_PATH
312+
- name: Restore Viceroy from cache
313+
uses: actions/[email protected]
314+
with:
315+
path: "/home/runner/.cargo/bin/viceroy"
316+
key: crate-cache-viceroy-${{ env.viceroy_version }}
317+
320318

321319
- name: Download x86_64 Linux binaries
322320
uses: actions/download-artifact@v1

0 commit comments

Comments
 (0)