Skip to content

Commit

Permalink
Enable sudo tar from cache restore
Browse files Browse the repository at this point in the history
  • Loading branch information
pfxuan committed Feb 29, 2024
1 parent 6e16176 commit dc434ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
rm -f ccache-*-linux-x86_64.tar.xz
ccache --version
- name: Sudo Tar Wrapper
run: |
sudo mv -fv /usr/bin/tar /usr/bin/tar.orig
echo -e '#!/bin/sh\n\nsudo /usr/bin/tar.orig "$@"' | sudo tee -a /usr/bin/tar
sudo chmod +x /usr/bin/tar
- name: Restore CUDA Cache
uses: actions/cache@v4
id: cuda-cache
Expand Down

0 comments on commit dc434ec

Please sign in to comment.