summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-14 11:26:13 +0100
committerGitHub <noreply@github.com>2021-01-14 11:26:13 +0100
commitcc5f190cb32af0a09183217984a0a5f09afc2caa (patch)
treeaa3299c9c4a96e90cc6924e3dc3e3d168adc4f36 /.github
parent4f5990fa26574ad497d4286ab1acdb316619cded (diff)
downloadopenttd-cc5f190cb32af0a09183217984a0a5f09afc2caa.tar.xz
Fix: [Actions] circumvent Windows tar warning about read-only files (#8570)
This was already applied on the CI build, but not yet on the release build.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 53222a806..6b9acc1e6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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: