Skip to content

Commit

Permalink
Fix: [Actions] circumvent Windows tar warning about read-only files (#…
Browse files Browse the repository at this point in the history
…8570)

This was already applied on the CI build, but not yet on the
release build.
  • Loading branch information
TrueBrain committed Jan 14, 2021
1 parent 4f5990f commit cc5f190
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,18 @@ jobs:
run: |
tar -xf source.tar.gz --strip-components=1
# "restore-cache" which is done by "run-vcpkg" uses Windows tar.
# A git clone on windows marks a few files as read-only; when Windows tar
# tries to extract the cache over this folder, it fails, despite the files
# being identical. This failure shows up as an warning in the logs. We
# avoid this by simply removing the read-only mark from the git folder.
# In other words: this is a hack!
# See: https://github.com/lukka/run-vcpkg/issues/61
- name: Remove read-only flag from vcpkg git folder
shell: powershell
run: |
attrib -r "c:\vcpkg\.git\*.*" /s
- name: Prepare vcpkg (with cache)
uses: lukka/run-vcpkg@v6
with:
Expand Down

0 comments on commit cc5f190

Please sign in to comment.