41
41
uses : actions/cache@v4
42
42
with :
43
43
path : C:\VC6
44
- key : vc6-permanent-cache-v1
44
+ key : vc6-permanent-cache-v2
45
45
46
46
- name : Cache CMake Dependencies
47
47
id : cache-cmake-deps
@@ -50,30 +50,29 @@ jobs:
50
50
path : build\${{ inputs.preset }}\_deps
51
51
key : cmake-deps-${{ inputs.preset }}-${{ hashFiles('CMakePresets.json','cmake/**/*.cmake','**/CMakeLists.txt') }}
52
52
53
- - name : Download VC6 Portable from Cloudflare R2
53
+ - name : Download VC6 Portable from itsmattkc repo
54
54
if : ${{ startsWith(inputs.preset, 'vc6') && steps.cache-vc6.outputs.cache-hit != 'true' }}
55
55
env :
56
- AWS_ACCESS_KEY_ID : ${{ secrets.R2_ACCESS_KEY_ID }}
57
- AWS_SECRET_ACCESS_KEY : ${{ secrets.R2_SECRET_ACCESS_KEY }}
58
- AWS_ENDPOINT_URL : ${{ secrets.R2_ENDPOINT_URL }}
59
- EXPECTED_HASH : " 118D0F1ACBBD70C3F8B081CA4DBAF955FE0C6C359A76636E930AA89FDC551091"
56
+ EXPECTED_HASH : " D0EE1F6DCEF7DB3AD703120D9FB4FAD49EBCA28F44372E40550348B1C00CA583"
57
+ COMMIT : " 001c4bafdcf2ef4b474d693acccd35a91e848f40"
60
58
shell : pwsh
61
59
run : |
62
60
Write-Host "Downloading VC6 Portable Installation" -ForegroundColor Cyan
63
- aws s3 cp s3 ://github-ci/VS6_VisualStudio6.7z VS6_VisualStudio6.7z --endpoint-url $env:AWS_ENDPOINT_URL
61
+ Invoke-WebRequest -Uri https ://github.com/itsmattkc/MSVC600/archive/$env:COMMIT.zip -OutFile VS6_VisualStudio6.zip
64
62
65
63
Write-Host "Verifying File Integrity" -ForegroundColor Cyan
66
- $fileHash = (Get-FileHash -Path VS6_VisualStudio6.7z -Algorithm SHA256).Hash
64
+ $fileHash = (Get-FileHash -Path VS6_VisualStudio6.zip -Algorithm SHA256).Hash
67
65
Write-Host "Downloaded file SHA256: $fileHash"
68
66
Write-Host "Expected file SHA256: $env:EXPECTED_HASH"
69
- if ($hash -ne $env:EXPECTED_HASH) {
67
+ if ($fileHash -ne $env:EXPECTED_HASH) {
70
68
Write-Error "Hash verification failed! File may be corrupted or tampered with."
71
69
exit 1
72
70
}
73
71
74
72
Write-Host "Extracting Archive" -ForegroundColor Cyan
75
- & 7z x VS6_VisualStudio6.7z -oC:\VC6
76
- Remove-Item VS6_VisualStudio6.7z -Verbose
73
+ & Expand-Archive -Path VS6_VisualStudio6.zip -DestinationPath C:\VC6
74
+ Move-Item -Path C:\VC6\MSVC600-$env:COMMIT -Destination C:\VC6\VC6SP6
75
+ Remove-Item VS6_VisualStudio6.zip -Verbose
77
76
78
77
- name : Set Up VC6 Environment
79
78
if : startsWith(inputs.preset, 'vc6')
0 commit comments