/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
.github/workflows/build-release-package.yml
102 строки
3 KB
Jan Krassnigg
Script to remove unnecessary files from release
03 мар 2026, 11:21
03 мар 2026, 11:21
7d8d78b
Код
Авторство
О чём код?
name: Build Release Package on: workflow_dispatch: inputs: full-binaries-artifact: description: 'Create full binaries artifact' required: true default: 'false' release-artifact: description: 'Create release artifact' required: true default: 'true' transform-projects: description: 'Transform Projects' required: true default: 'true' 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 ezEngine repository uses: actions/checkout@v6 with: path: repo submodules: 'recursive' - name: Read SDK Version id: sdk-version uses: juliangruber/read-file-action@v1.1.7 with: path: repo/version.txt - name: Echo SDK Version run: echo "SDK Version is ${{ steps.sdk-version.outputs.content }}" - name: Checkout template repository uses: actions/checkout@v6 with: repository: ezEngine/release-template path: template_repo token: ${{ secrets.API_TOKEN_GITHUB }} - name: Setup MSBuild uses: microsoft/setup-msbuild@v2 - name: Exclude Unwanted Files shell: pwsh run: repo\Utilities\Scripts\exclude-unwanted-files.ps1 -marker platform-windows.ez-exclude - 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_UNITTESTS:BOOL=OFF -DEZ_SOLUTION_NAME:string="solution" - name: Build Full Solution run: msbuild build/solution.slnx /p:Configuration=Dev - 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\WinVs2026Dev64 retention-days: 3 - name: Transform All Projects if: github.event.inputs.transform-projects == 'true' shell: pwsh run: repo\Utilities\Scripts\transform-all-projects.ps1 - name: Generate Package run: | mkdir _package mkdir _package\Output mkdir _package\Data mkdir _package\Code copy repo\version.txt _package copy repo\ezCMakeConfig.cmake _package xcopy repo\Output _package\Output /s xcopy repo\Data _package\Data /s xcopy repo\Code _package\Code /s xcopy template_repo\package _package /s /y - name: Remove Unwanted Files shell: pwsh run: repo\Utilities\Scripts\remove-release-files.ps1 -RootDir _package - name: Create Zip Archive run: | repo\Data\Tools\Precompiled\7z.exe a ezEngine.Release.${{ steps.sdk-version.outputs.content }}.zip .\_package\* -mx9 - name: Artifact - Release Package if: github.event.inputs.release-artifact == 'true' uses: actions/upload-artifact@v7 with: name: ezEngine.Release.${{ steps.sdk-version.outputs.content }} path: ezEngine.Release.${{ steps.sdk-version.outputs.content }}.zip retention-days: 3