Visual Studio - Preview #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Visual Studio - Preview' | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| selected-job: | |
| description: 'Select which job to run' | |
| required: true | |
| default: 'Build' | |
| type: choice | |
| options: | |
| - Update | |
| - Build | |
| schedule: | |
| - cron: '0 6 * * 3' | |
| - cron: '0 7 * * 3' | |
| jobs: | |
| update-visualstudio-preview: | |
| if: ${{ github.event.schedule == '0 6 * * 3' || (github.event_name == 'workflow_dispatch' && inputs.selected-job == 'Update') }} | |
| name: Update Visual Studio - Preview (Insiders) | |
| runs-on: | |
| - self-hosted | |
| - windows | |
| - x64 | |
| - preview | |
| steps: | |
| - name: Update Visual Studio Preview | |
| shell: cmd | |
| run: "C:\\bin\\vs_update.bat" | |
| - name: Display Update Log - Visual Studio Preview | |
| shell: cmd | |
| run: "timeout 30 > NUL & type C:\\ROOT-CI\\VS-Update.log" | |
| - name: Reboot after update - Visual Studio Preview | |
| shell: cmd | |
| run: "timeout 30 > NUL & shutdown /r" | |
| build-windows: | |
| if: ${{ github.event.schedule == '0 7 * * 3' || (github.event_name == 'workflow_dispatch' && inputs.selected-job == 'Build') }} | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| name: Build Visual Studio - Preview (Insiders) | |
| runs-on: | |
| - self-hosted | |
| - windows | |
| - x64 | |
| - preview | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: master | |
| - name: Build after VS update | |
| shell: cmd | |
| run: "C:\\setenv.bat x64 && | |
| python .github/workflows/root-ci-config/build_root.py | |
| --buildtype Release | |
| --platform windows10 | |
| --incremental false | |
| --binaries false | |
| --upload_artifacts false | |
| --base_ref master | |
| --repository ${{ github.server_url }}/${{ github.repository }} | |
| --architecture x64" | |
| - name: Upload test results | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test Results - Visual Studio Preview | |
| path: C:/ROOT-CI/build/TestResults.xml | |