From 1f67678ccdac5b3b1572c17372244488cce6ebaf Mon Sep 17 00:00:00 2001 From: Iru Date: Sat, 14 Sep 2024 00:58:48 +0300 Subject: [PATCH 1/2] Adding issue and feature templates --- .github/ISSUE_TEMPLATE/bug_report.md | 26 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 +++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..ff7e33c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,26 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: IruNil6 + +--- + +**Version** +Type a Version of engine where you found a bug. + +**Stacktrace** +Please specify the stacktrace or exceptionnumber. + +**Describe the bug** +A clear and concise description of what the bug is. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Additional context** +Add any other context about the problem here. + +**Screenshots** +If applicable, add screenshots to help explain your problem. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..89f2d61 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for VoxelEngine-Sharp +title: "[FEATURE]" +labels: request +assignees: IruNil6 + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. + +**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. From cd51db1d886942b3e1a005f86d102f9fecd27d67 Mon Sep 17 00:00:00 2001 From: Iru Date: Mon, 16 Sep 2024 00:30:19 +0300 Subject: [PATCH 2/2] Adding building of pull requests --- .github/workflows/build-pull-request.yml | 64 ++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/build-pull-request.yml diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml new file mode 100644 index 0000000..96463b8 --- /dev/null +++ b/.github/workflows/build-pull-request.yml @@ -0,0 +1,64 @@ +name: .NET Core Build Pull Request +on: + pull_request: + branches: [ "release" ] +jobs: + build-windows: + strategy: + matrix: + configuration: [Debug, Release] + name: Build-Windows + runs-on: windows-latest + env: + Solution_Name: VoxelEngine-Sharp.sln + Configuration: ${{ matrix.configuration }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install .Net Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore the application + run: dotnet restore + + - name: .NET Build Client + run: dotnet build Client /p:Configuration=$env:Configuration --no-restore + + - name: .NET Build Server + run: dotnet build Server /p:Configuration=$env:Configuration --no-restore + + build-ubuntu: + strategy: + matrix: + configuration: [Debug, Release] + name: Build-Ubuntu + runs-on: ubuntu-latest + env: + Solution_Name: VoxelEngine-Sharp.sln + Configuration: ${{ matrix.configuration }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install .Net Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore the application + run: dotnet restore + + - name: .NET Build Client + run: dotnet build Client --configuration $env:Configuration --no-restore + + - name: .NET Build Server + run: dotnet build Server --configuration $env:Configuration --no-restore \ No newline at end of file