From 6c73132e22ea15ef81c2db7bb28eab07d69d5791 Mon Sep 17 00:00:00 2001 From: chad Date: Thu, 10 Oct 2024 20:54:56 +0500 Subject: [PATCH] added workflow --- .github/ISSUE_TEMPLATE/bug_report.md | 31 ++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++ .github/workflows/msbuild.yml | 86 +++++++++++++++++++++++ README.md | 2 +- 4 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..2df2510 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,31 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Windows version + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..8b683e7 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,86 @@ +name: MSBuild + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: ./Liesofp_dlc.sln + tag1: V${{ github.run_number }} + BUILD_ID: ${{ github.run_id }} # Уникальный идентификатор для сборки + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + strategy: + matrix: + configuration: [Release, Debug] # Матрица для двух конфигураций + include: + - configuration: Release + - configuration: Debug + + steps: + # Проверка репозитория + - uses: actions/checkout@v3 + with: + submodules: recursive + + # Кэширование пакетов NuGet для ускорения сборки + - name: Cache NuGet packages + uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} + restore-keys: | + ${{ runner.os }}-nuget- + + # Установка MSBuild + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + # Восстановление NuGet пакетов + - name: Restore NuGet packages + working-directory: ${{ env.GITHUB_WORKSPACE }} + run: nuget restore ${{ env.SOLUTION_FILE_PATH }} + + # Сборка проекта + - name: Build + working-directory: ${{ env.GITHUB_WORKSPACE }} + timeout-minutes: 10 # Увеличиваем время на случай больших сборок + run: msbuild /m /p:Configuration=${{ matrix.configuration }} ${{ env.SOLUTION_FILE_PATH }} + + - name: Zip build artifacts + run: | + 7z a bin-${{ matrix.configuration }}-${{ env.BUILD_ID }}.zip ${{ github.workspace }}\bin\${{ matrix.configuration }}-x64\* + + # Загрузка артефактов + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: LiesOfP-${{ matrix.configuration }} + path: bin-${{ matrix.configuration }}-${{ env.BUILD_ID }}.zip + + # Опционально: публикация релиза + # release: + # needs: build + # runs-on: ubuntu-latest + # permissions: + # contents: write + # steps: + # - name: Download a Build Artifact + # uses: actions/download-artifact@v3.0.0 + # with: + # name: my-artifact + # - name: Release + # uses: softprops/action-gh-release@v1 + # with: + # token: ${{ secrets.GITHUB_TOKEN }} + # tag_name: ${{ env.tag1 }} + # files: bin-${{ matrix.configuration }}-${{ env.BUILD_ID }}.zip diff --git a/README.md b/README.md index a949d91..de0d024 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ git clone --recurse-submodules https://github.com/chadlrnsn/ImGui-DirectX-12-Kie # Known bugs - In debug builds, where exists debug layers might may crash - Flickering -- Alt+Enter (fullscreen cause render freeze) +- Alt+Enter (fullscreen cause render freeze **IF MENU IS OPEN**) ## Kiero You can find Kiero's official repository [here](https://github.com/Rebzzel/kiero)