/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
.github/workflows/update-precompiled-tools.yml
94 строки
3 KB
Jan Krassnigg
Enable Vulkan build by default, but prefer D3D11 for rendering (#1958)
09 июн 2026, 08:54
Не верифицирован
09 июн 2026, 08:54
be122e0
Код
Авторство
О чём код?
name: Update Precompiled Tools on: workflow_dispatch: inputs: push-to-dev: description: 'Submit to Submodule' required: true default: 'true' full-binaries-artifact: description: 'Create full binaries artifact' required: true default: 'false' new-binaries-artifact: description: 'Create new binaries artifact' required: true default: 'false' jobs: build: # windows-2025-vs2026 is required because windows-latest/windows-2025 only has VS 2022. # VS 2026 will be added to windows-latest when it reaches GA (expected May 4, 2026). runs-on: windows-2025-vs2026 steps: - name: Checkout repository uses: actions/checkout@v6 with: path: repo submodules: 'recursive' - name: Setup MSBuild uses: microsoft/setup-msbuild@v2 - name: Run CMake run: | cmake.exe -S repo -B build -G "Visual Studio 18 2026" -A x64 -DCMAKE_SYSTEM_VERSION:STRING="10.0.18362.0" -DEZ_ENABLE_QT_SUPPORT:BOOL=ON -DEZ_BUILD_FILTER:STRING="PrecompiledTools" -DEZ_3RDPARTY_LUA_SUPPORT:BOOL=OFF -DEZ_3RDPARTY_IMGUI_SUPPORT:BOOL=OFF -DEZ_3RDPARTY_TRACY_SUPPORT:BOOL=OFF -DEZ_SOLUTION_NAME:string="solution" # These commands should NOT use 'rebuild', as that wastes a lot of time # But MSVC on GitHub is currently broken and doesn't build without it at all - name: Build Projects run: msbuild build/solution.slnx /p:Configuration=Shipping - name: Artifact - Full Binaries if: github.event.inputs.full-binaries-artifact == 'true' uses: actions/upload-artifact@v7 with: name: full-binaries path: repo\Output\Bin\WinVs2026Shipping64 retention-days: 3 - name: Checkout Precompiled Tools Repository uses: actions/checkout@v6 with: repository: ezEngine/precompiled-tools ref: main path: _tools fetch-depth: 1 persist-credentials: false - name: Copy Precompiled Binaries run: | xcopy repo\Output\Bin\WinVs2026Shipping64 _tools /s /u /y - name: Artifact - New Precompiled Tools if: github.event.inputs.new-binaries-artifact == 'true' uses: actions/upload-artifact@v7 with: name: new-precompiled-tools path: _tools retention-days: 3 - name: Commit to Submodule run: | cd _tools git config --global user.email "ezEngineProject@gmail.com" git config --global user.name "ezEngine Automation" git add . git commit -m "Updated Precompiled Tools" - name: Push to Submodule if: github.event.inputs.push-to-dev == 'true' uses: ad-m/github-push-action@v1.0.0 with: github_token: ${{ secrets.API_TOKEN_GITHUB }} branch: main directory: _tools repository: ezEngine/precompiled-tools force: true # in theory we could now also update the submodule in the ezEngine repository # and do an automated commit there as well # however, maybe it's better to have some user validation there