Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlrnsn committed Oct 10, 2024
1 parent 401ee1b commit 6c73132
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -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.
86 changes: 86 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

# Восстановление 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/[email protected]
# 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6c73132

Please sign in to comment.