diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fc8cbba75..13744f543 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -37,14 +37,10 @@ jobs:
- name: Fix Projects
shell: powershell
run: |
- # WARNING: This will need updating if toolset/sdk change in project files!
+ # CI workers do not supporter older Visual Studio versions. Fix projects to target newer available version.
gci -recurse -filter "*.vcxproj" | ForEach-Object {
- # Fix SDK and toolset for most samples.
- (Get-Content $_.FullName) -Replace "v110","v142" | Set-Content -Path $_.FullName
- (Get-Content $_.FullName) -Replace "8.1","10.0.18362.0" | Set-Content -Path $_.FullName
- # Fix SDK and toolset for samples that require newer SDK/toolset. At the moment it is only dx12.
- (Get-Content $_.FullName) -Replace "v140","v142" | Set-Content -Path $_.FullName
- (Get-Content $_.FullName) -Replace "10.0.14393.0","10.0.18362.0" | Set-Content -Path $_.FullName
+ (Get-Content $_.FullName) -Replace "v\d{3}","v142" | Set-Content -Path $_.FullName
+ (Get-Content $_.FullName) -Replace "[\d\.]+","10.0.18362.0" | Set-Content -Path $_.FullName
}
# Not using matrix here because it would inflate job count too much. Check out and setup is done for every job and that makes build times way too long.
@@ -497,34 +493,3 @@ jobs:
run: |
cd examples/example_android_opengl3/android
gradle assembleDebug
-
- Discord-CI:
- runs-on: ubuntu-18.04
- if: always()
- needs: [Windows, Linux, MacOS, iOS, Emscripten, Android]
- steps:
- - uses: dearimgui/github_discord_notifier@latest
- with:
- discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }}
- github-token: ${{ github.token }}
- action-task: discord-jobs
- discord-filter: "'{{ github.branch }}'.match(/master|docking/g) != null && '{{ run.conclusion }}' != '{{ last_run.conclusion }}'"
- discord-username: GitHub Actions
- discord-job-new-failure-message: ''
- discord-job-fixed-failure-message: ''
- discord-job-new-failure-embed: |
- {
- "title": "`{{ job.name }}` job is failing on `{{ github.branch }}`!",
- "description": "Commit [{{ github.context.payload.head_commit.title }}]({{ github.context.payload.head_commit.url }}) pushed to [{{ github.branch }}]({{ github.branch_url }}) broke [{{ job.name }}]({{ job.url }}) build job.\nFailing steps: {{ failing_steps }}",
- "url": "{{ job.url }}",
- "color": "0xFF0000",
- "timestamp": "{{ run.updated_at }}"
- }
- discord-job-fixed-failure-embed: |
- {
- "title": "`{{ github.branch }}` branch is no longer failing!",
- "description": "Build failures were fixed on [{{ github.branch }}]({{ github.branch_url }}) branch.",
- "color": "0x00FF00",
- "url": "{{ github.context.payload.head_commit.url }}",
- "timestamp": "{{ run.completed_at }}"
- }