Skip to content

Commit

Permalink
Merge pull request #196 from TaixuEngineGroup/dev
Browse files Browse the repository at this point in the history
V1.0
  • Loading branch information
xmmmmmovo committed May 22, 2023
2 parents 7d9c1c6 + c7e95f6 commit 01d3aa4
Show file tree
Hide file tree
Showing 265 changed files with 75,779 additions and 140,344 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behaviour:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See the error

**Expected behaviour**
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]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**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: "[Feature]"
labels: enhancement
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.
38 changes: 38 additions & 0 deletions .github/workflows/build_windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Windows

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
name: Configure CPM caching
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}

- name: Build
run: |
cmake -S. -Bbuild
cmake --build build --target TaixuEngineEditor --config Release
# upload to release
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
build/TaixuEngineEditor.exe
tag_name: ${{ github.ref }}
body: |
Release ${{ github.ref }}
draft: false
prerelease: false
1 change: 0 additions & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Documentation
on:
push:
branches:
- dev
- main

env:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint Cpp

on:
pull_request:
paths:
- "engine/**"

jobs:
foramt:
name: Clang Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: DoozyX/clang-format-lint-action@v0.16.1
with:
source: './engine'
exclude: './engine/assets ./engine/shaders'
extensions: 'hpp,cpp,inl'
clangFormatVersion: 16
inplace: True
- uses: EndBug/add-and-commit@v9
with:
author_name: Clang Robot
author_email: robot@example.com
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.TAIXU_GITHUB_TOKEN }}

lint:
name: Clang Tidy
needs: foramt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
19 changes: 9 additions & 10 deletions 3rdparty/FindStb.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# stb
CPMAddPackage(
NAME stb
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_TAG 5736b15f7ea0ffb08dd38af21067c314d6a3aae9
NAME stb
GIT_REPOSITORY https://github.com/nothings/stb.git
GIT_TAG 5736b15f7ea0ffb08dd38af21067c314d6a3aae9
)

if(stb_ADDED)
if (stb_ADDED)
FILE(GLOB stb_headers CONFIGURE_DEPENDS ${stb_SOURCE_DIR}/*.h)
FILE(GLOB stb_sources ${PROJECT_SOURCE_DIR}/3rdparty/stb/*.cpp)
add_library(stb INTERFACE ${stb_headers} ${stb_sources})
add_library(stb INTERFACE ${stb_sources})
target_include_directories(stb
INTERFACE
$<BUILD_INTERFACE:${stb_SOURCE_DIR}>
)
endif()
INTERFACE
$<BUILD_INTERFACE:${stb_SOURCE_DIR}>
)
endif ()
Loading

0 comments on commit 01d3aa4

Please sign in to comment.