mirror of https://github.com/AxioDL/metaforce.git
ci: Expand-Archive -Force
This commit is contained in:
parent
dce1c1f882
commit
3f9b0e6822
|
@ -196,7 +196,7 @@ jobs:
|
||||||
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
||||||
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
||||||
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
||||||
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir"
|
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir" -Force
|
||||||
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
# check available disk space
|
# check available disk space
|
||||||
|
|
|
@ -227,7 +227,7 @@ jobs:
|
||||||
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
||||||
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
||||||
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
||||||
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir"
|
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir" -Force
|
||||||
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Enable Visual Studio environment
|
- name: Enable Visual Studio environment
|
||||||
|
@ -302,7 +302,7 @@ jobs:
|
||||||
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
$TempDir = "$env:RUNNER_WORKSPACE\temp"
|
||||||
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
New-Item -Path "$TempDir" -ItemType Directory -ea 0
|
||||||
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
(New-Object Net.WebClient).DownloadFile("https://github.com/mbitsnbites/buildcache/releases/download/$env:BUILDCACHE_VERSION/buildcache-windows.zip", "$TempDir\buildcache.zip")
|
||||||
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir"
|
Expand-Archive -LiteralPath "$TempDir\buildcache.zip" -DestinationPath "$TempDir" -Force
|
||||||
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
echo "$TempDir\buildcache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
# check available disk space
|
# check available disk space
|
||||||
|
|
Loading…
Reference in New Issue