2525 default : false
2626 type : boolean
2727 description : " Build extras"
28+ release :
29+ required : false
30+ type : string
31+ description : " Release build (true/false)"
2832
2933jobs :
3034 build :
@@ -41,39 +45,40 @@ jobs:
4145 uses : actions/cache@v4
4246 with :
4347 path : C:\VC6
44- key : vc6-permanent-cache-v1
45-
46- - name : Cache CMake Dependencies
47- id : cache-cmake-deps
48- uses : actions/cache@v4
49- with :
50- path : build\${{ inputs.preset }}\_deps
51- key : cmake-deps-${{ inputs.preset }}-${{ hashFiles('CMakePresets.json','cmake/**/*.cmake','**/CMakeLists.txt') }}
52-
53- - name : Download VC6 Portable from Cloudflare R2
48+ key : vc6-permanent-cache-v2
49+
50+ # - name: Cache CMake Dependencies
51+ # id: cache-cmake-deps
52+ # uses: actions/cache@v4
53+ # with:
54+ # path: build\${{ inputs.preset }}\_deps
55+ # key: cmake-deps-${{ inputs.preset }}-${{ hashFiles('cmake/**/*.cmake', '**/CMakeLists.txt') }}
56+ # restore-keys: |
57+ # cmake-deps-${{ inputs.preset }}-
58+
59+ - name : Download VC6 Portable from itsmattkc repo
5460 if : ${{ startsWith(inputs.preset, 'vc6') && steps.cache-vc6.outputs.cache-hit != 'true' }}
5561 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"
62+ EXPECTED_HASH : " D0EE1F6DCEF7DB3AD703120D9FB4FAD49EBCA28F44372E40550348B1C00CA583"
63+ COMMIT : " 001c4bafdcf2ef4b474d693acccd35a91e848f40"
6064 shell : pwsh
6165 run : |
6266 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
67+ Invoke-WebRequest -Uri https ://github.com/itsmattkc/MSVC600/archive/$env:COMMIT.zip -OutFile VS6_VisualStudio6.zip
6468
6569 Write-Host "Verifying File Integrity" -ForegroundColor Cyan
66- $fileHash = (Get-FileHash -Path VS6_VisualStudio6.7z -Algorithm SHA256).Hash
70+ $fileHash = (Get-FileHash -Path VS6_VisualStudio6.zip -Algorithm SHA256).Hash
6771 Write-Host "Downloaded file SHA256: $fileHash"
6872 Write-Host "Expected file SHA256: $env:EXPECTED_HASH"
69- if ($hash -ne $env:EXPECTED_HASH) {
73+ if ($fileHash -ne $env:EXPECTED_HASH) {
7074 Write-Error "Hash verification failed! File may be corrupted or tampered with."
7175 exit 1
7276 }
7377
7478 Write-Host "Extracting Archive" -ForegroundColor Cyan
75- & 7z x VS6_VisualStudio6.7z -oC:\VC6
76- Remove-Item VS6_VisualStudio6.7z -Verbose
79+ & Expand-Archive -Path VS6_VisualStudio6.zip -DestinationPath C:\VC6
80+ Move-Item -Path C:\VC6\MSVC600-$env:COMMIT -Destination C:\VC6\VC6SP6
81+ Remove-Item VS6_VisualStudio6.zip -Verbose
7782
7883 - name : Set Up VC6 Environment
7984 if : startsWith(inputs.preset, 'vc6')
@@ -110,6 +115,10 @@ jobs:
110115 "-DRTS_BUILD_ZEROHOUR=${{ inputs.game == 'GeneralsMD' && 'ON' || 'OFF' }}",
111116 "-DRTS_BUILD_GENERALS=${{ inputs.game == 'Generals' && 'ON' || 'OFF' }}"
112117 )
118+
119+ if ("${{ inputs.release }}") {
120+ $buildFlags += "-DVERSION_BUILDUSER='${{ inputs.release }}'"
121+ }
113122
114123 $gamePrefix = "${{ inputs.game == 'Generals' && 'GENERALS' || 'ZEROHOUR' }}"
115124 $buildFlags += "-DRTS_BUILD_CORE_TOOLS=${{ inputs.tools && 'ON' || 'OFF' }}"
@@ -140,6 +149,9 @@ jobs:
140149 $files = Get-ChildItem -Path "$buildDir\Core","$buildDir\${{ inputs.game }}" -File | Where-Object { $_.Extension -in @(".exe", ".dll", ".pdb") } -Verbose
141150 }
142151 $files | Move-Item -Destination $artifactsDir -Verbose -Force
152+
153+ Write-Host "Files in artifactsDir:"
154+ Get-ChildItem -Path $artifactsDir | ForEach-Object { Write-Host $_.FullName }
143155
144156 - name : Upload ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
145157 uses : actions/upload-artifact@v4
0 commit comments