2424jobs :
2525 Linux_Build :
2626 # Only run push event on master branch of main repo, but run all PRs
27- # if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
27+ if : github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
2828 strategy :
2929 fail-fast : false
3030 matrix :
@@ -117,7 +117,7 @@ jobs:
117117
118118 Mac_Build :
119119 # Only run push event on master branch of main repo, but run all PRs
120- # if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
120+ if : github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
121121 strategy :
122122 fail-fast : false
123123 matrix :
@@ -191,22 +191,22 @@ jobs:
191191 run : .ci/github-upload.sh
192192
193193 - name : Save Build Ccache
194- # if: github.ref == 'refs/heads/master'
194+ if : github.ref == 'refs/heads/master'
195195 uses : actions/cache/save@main
196196 with :
197197 path : ${{ env.CCACHE_DIR }}
198198 key : ${{ steps.restore-build-ccache.outputs.cache-primary-key }}
199199
200200 - name : Save Qt Cache
201- # if: github.ref == 'refs/heads/master'
201+ if : github.ref == 'refs/heads/master'
202202 uses : actions/cache/save@main
203203 with :
204204 path : /tmp/Qt
205205 key : ${{ steps.restore-qt-cache.outputs.cache-primary-key }}
206206
207207 Windows_Build :
208208 # Only run push event on master branch of main repo, but run all PRs
209- # if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
209+ if : github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
210210 name : RPCS3 Windows
211211 runs-on : windows-2025
212212 env :
@@ -312,22 +312,22 @@ jobs:
312312 run : .ci/github-upload.sh
313313
314314 - name : Save Build Ccache
315- # if: github.ref == 'refs/heads/master'
315+ if : github.ref == 'refs/heads/master'
316316 uses : actions/cache/save@main
317317 with :
318318 path : ${{ env.CCACHE_DIR }}
319319 key : ${{ steps.restore-build-ccache.outputs.cache-primary-key }}
320320
321321 - name : Save Dependencies Cache
322- # if: github.ref == 'refs/heads/master'
322+ if : github.ref == 'refs/heads/master'
323323 uses : actions/cache/save@main
324324 with :
325325 path : ${{ env.DEPS_CACHE_DIR }}
326326 key : ${{ steps.restore-dependencies-cache.outputs.cache-primary-key }}
327327
328328 Windows_Build_Clang :
329329 # Only run push event on master branch of main repo, but run all PRs
330- # if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
330+ if : github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
331331 runs-on : windows-2025
332332 strategy :
333333 fail-fast : false
@@ -415,9 +415,7 @@ jobs:
415415 --clean-after-build
416416
417417 - name : Save vcpkg cache
418- if : ${{ matrix.compiler == 'clang-cl' }}
419- # if: ${{ !steps.restore-vcpkg-cache.outputs.cache-hit && matrix.compiler == 'clang-cl' }}
420- # if: github.ref == 'refs/heads/master'
418+ if : ${{ github.ref == 'refs/heads/master' && matrix.compiler == 'clang-cl' }}
421419 uses : actions/cache/save@main
422420 with :
423421 path : |
@@ -452,7 +450,7 @@ jobs:
452450 C:\PROGRA~1\LLVM\bin\clang-cl.exe --version
453451 - name : Save LLVM Cache
454452 if : ${{ matrix.compiler == 'clang-cl' && steps.llvm-cache.outputs.cache-hit != 'true' }}
455- # if: github.ref == 'refs/heads/master'
453+ if : github.ref == 'refs/heads/master'
456454 uses : actions/cache/save@main
457455 with :
458456 path : ./llvm-${{ matrix.llvmver }}
@@ -473,6 +471,8 @@ jobs:
473471 export CCACHE_DIR=$(cygpath -u "$CCACHE_DIR")
474472 echo "CCACHE_DIR=$CCACHE_DIR"
475473 .ci/build-windows-clang.sh
474+ .ci/setup-windows-ci-vars.sh ${{ matrix.arch }} ${{ matrix.compiler }}
475+ .ci/deploy-windows-${{ matrix.compiler }}.sh
476476
477477 - name : install DIA SDK
478478 if : ${{ matrix.compiler == 'clang-cl' }}
@@ -484,21 +484,18 @@ jobs:
484484 - name : Build RPCS3
485485 if : ${{ matrix.compiler == 'clang-cl' }}
486486 shell : bash
487- run : .ci/build-windows-clang-cl.sh
487+ run : |
488+ .ci/build-windows-clang-cl.sh
489+ .ci/setup-windows-ci-vars.sh ${{ matrix.arch }} ${{ matrix.compiler }}
490+ .ci/deploy-windows-${{ matrix.compiler }}.sh
488491
489492 - name : Save build Ccache
490- # if: github.ref == 'refs/heads/master'
493+ if : github.ref == 'refs/heads/master'
491494 uses : actions/cache/save@main
492495 with :
493496 path : ${{ env.CCACHE_DIR }}
494497 key : ${{ steps.restore-build-ccache.outputs.cache-primary-key }}
495498
496- - name : Prepare Artifacts
497- shell : bash
498- run : |
499- .ci/setup-windows-ci-vars.sh ${{ matrix.arch }} ${{ matrix.compiler }}
500- .ci/deploy-windows-${{ matrix.compiler }}.sh
501-
502499 - name : Upload artifacts
503500 uses : actions/upload-artifact@main
504501 with :
@@ -508,8 +505,8 @@ jobs:
508505 if-no-files-found : error
509506
510507 FreeBSD_Build :
511- # Only run push event on master branch of main repo, but run all PRs
512- # if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
508+ # Only run push event on master branch of main repo, but run all PRs
509+ if : github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
513510 name : RPCS3 FreeBSD
514511 runs-on : ubuntu-latest
515512 timeout-minutes : 60
@@ -540,7 +537,7 @@ jobs:
540537 run : .ci/install-freebsd.sh && .ci/build-freebsd.sh
541538
542539 - name : Save Build Ccache
543- # if: github.ref == 'refs/heads/master'
540+ if : github.ref == 'refs/heads/master'
544541 uses : actions/cache/save@main
545542 with :
546543 path : ${{ env.CCACHE_DIR }}
0 commit comments