@@ -450,7 +450,7 @@ jobs:
450450 name : " visionOS"
451451 permissions : {}
452452 runs-on : macos-15
453- if : ${{ github.event_name != 'schedule' }}
453+ if : false # visionOS temporarily disabled until releases are resumed
454454 steps :
455455 - name : Checkout
456456 uses : actions/checkout@v5
@@ -504,7 +504,7 @@ jobs:
504504 matrix :
505505 template : [all, visionos]
506506 runs-on : macos-15
507- if : ${{ github.event_name != 'schedule' }}
507+ if : false # visionOS temporarily disabled until releases are resumed
508508 steps :
509509 - name : Checkout
510510 uses : actions/checkout@v5
@@ -559,6 +559,7 @@ jobs:
559559 uses : ./.github/actions/setup-toolchain
560560 with :
561561 platform : windows
562+ node-version : 22
562563 - name : Set up react-native@canary
563564 if : ${{ github.event_name == 'schedule' }}
564565 uses : ./.github/actions/setup-react-native
@@ -582,7 +583,14 @@ jobs:
582583 - name : Determine whether the Windows app needs to be built
583584 id : affected
584585 uses : ./.github/actions/affected
586+ - name : Install Windows App SDK
587+ if : ${{ steps.affected.outputs.windows != '' }}
588+ run : |
589+ ../node_modules/react-native-windows/Scripts/rnw-dependencies.ps1 -Install -NoPrompt -Enterprise
590+ nuget restore Example.sln
591+ working-directory : packages/app/example/windows
585592 - name : Build
593+ id : build
586594 if : ${{ steps.affected.outputs.windows != '' }}
587595 run : |
588596 if ("${{ matrix.configuration }}" -eq "Release") {
@@ -591,6 +599,16 @@ jobs:
591599 yarn ci:windows --arch ${{ matrix.platform }}
592600 }
593601 working-directory : packages/app/example
602+ continue-on-error : true
603+ - name : Build (2nd attempt)
604+ if : ${{ steps.affected.outputs.windows != '' && steps.build.outcome != 'success' }}
605+ run : |
606+ if ("${{ matrix.configuration }}" -eq "Release") {
607+ yarn ci:windows --release --arch ${{ matrix.platform }}
608+ } else {
609+ yarn ci:windows --arch ${{ matrix.platform }}
610+ }
611+ working-directory : packages/app/example
594612 - name : Upload build logs
595613 if : ${{ steps.affected.outputs.windows != '' && failure() }}
596614 uses : actions/upload-artifact@v6
@@ -624,6 +642,7 @@ jobs:
624642 uses : ./.github/actions/setup-toolchain
625643 with :
626644 platform : windows
645+ node-version : 22
627646 - name : Initialize test app
628647 uses : ./.github/actions/init-test-app
629648 with :
@@ -639,11 +658,24 @@ jobs:
639658 - name : Determine whether the Windows app needs to be built
640659 id : affected
641660 uses : ./.github/actions/affected
661+ - name : Install Windows App SDK
662+ if : ${{ steps.affected.outputs.windows != '' }}
663+ run : |
664+ ../node_modules/react-native-windows/Scripts/rnw-dependencies.ps1 -Install -NoPrompt -Enterprise
665+ nuget restore TemplateExample.sln
666+ working-directory : template-example/windows
642667 - name : Build
668+ id : build
643669 if : ${{ steps.affected.outputs.windows != '' }}
644670 run : |
645671 yarn windows --logging --no-packager --no-launch --no-deploy
646672 working-directory : template-example
673+ continue-on-error : true
674+ - name : Build (2nd attempt)
675+ if : ${{ steps.affected.outputs.windows != '' && steps.build.outcome != 'success' }}
676+ run : |
677+ yarn windows --logging --no-packager --no-launch --no-deploy
678+ working-directory : packages/app/example
647679 - name : Upload build logs
648680 if : ${{ steps.affected.outputs.windows != '' && failure() }}
649681 uses : actions/upload-artifact@v6
0 commit comments