Skip to content

Commit

Permalink
Merge pull request #92 from AsPJT/develop
Browse files Browse the repository at this point in the history
v1.0.0 MESOPOTAMIA
  • Loading branch information
AsPJT authored Jan 8, 2024
2 parents e0daf97 + 06bb1a1 commit e744ae6
Show file tree
Hide file tree
Showing 17,701 changed files with 159,905 additions and 12,398 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true
[*]
charset = utf-8-bom
end_of_line = lf
indent_size = 4
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 1 addition & 1 deletion .github/workflows/area-calculate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: AreaCalculate
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/cmake-all-build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: CMake-All-Build
name: CMake-All-Build

on:
pull_request:
branches: [ main ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
matrix:
compiler: [g++, clang++]
Expand All @@ -21,22 +20,21 @@ jobs:
uses: actions/checkout@v3

- name: Checkout submodules
run: git submodule update --init --recursive ExternalLibrary/googletest
run: |
git submodule update --init --recursive ExternalLibrary/googletest
git submodule update --init --recursive ExternalLibrary/stb
- name: Install dependencies
run: |
sudo apt-get clean
sudo apt-get update
sudo apt-get install libopencv-dev
sudo apt-get install libsfml-dev
sudo apt-get install cmake
sudo apt-get install g++
- name: Configure CMake
run: |
mkdir ${{github.workspace}}/build
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SFML_TEST=ON -S ${{env.WORK_SPACE}} -G "Unix Makefiles"
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{env.WORK_SPACE}} -G "Unix Makefiles"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all -j 12

18 changes: 10 additions & 8 deletions .github/workflows/cmake-build-on-push.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: CMake-Build-On-Push
name: CMake-Build-On-Push

on:
push:
branches: [ main ]
branches:
- main

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-ubuntu-20.04

strategy:
matrix:
compiler: [g++, clang++]
Expand All @@ -21,7 +22,9 @@ jobs:
uses: actions/checkout@v3

- name: Checkout submodules
run: git submodule update --init --recursive ExternalLibrary/googletest
run: |
git submodule update --init --recursive ExternalLibrary/googletest
git submodule update --init --recursive ExternalLibrary/stb
- name: Install dependencies
run: |
Expand All @@ -34,8 +37,7 @@ jobs:
- name: Configure CMake
run: |
mkdir ${{github.workspace}}/build
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SFML_TEST=ON -S ${{env.WORK_SPACE}} -G "Unix Makefiles"
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{env.WORK_SPACE}} -G "Unix Makefiles"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all -j 12

34 changes: 11 additions & 23 deletions .github/workflows/cmake-unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,42 @@
name: CMake-Unit-Test
name: CMake-Unit-Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TEST_DIR: UnitTest

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
compiler: [g++, clang++]
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Checkout submodules
run: git submodule update --init --recursive ExternalLibrary/googletest
run: |
git submodule update --init --recursive ExternalLibrary/googletest
git submodule update --init --recursive ExternalLibrary/stb
- name: Install dependencies
run: |
sudo apt-get clean
sudo apt-get update
sudo apt-get install libsfml-dev
sudo apt-get install cmake
sudo apt-get install g++
- name: Configure CMake
run: |
mkdir ${{github.workspace}}/build
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SFML_TEST=ON -S ${{env.WORK_SPACE}}/${{env.TEST_DIR}} -G "Unix Makefiles"
cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{env.WORK_SPACE}}/${{env.TEST_DIR}} -G "Unix Makefiles"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all -j 12

- name: Run tests
- name: Run tests
run: |
cd ${{env.WORK_SPACE}}/${{env.TEST_DIR}}/bin/
for file in *; do
if [[ -x "$file" ]]; then
./"$file"
fi
done
cd ${{github.workspace}}/build
ctest
2 changes: 1 addition & 1 deletion .github/workflows/color-count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: ColorCount
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: cppcheck

on: [pull_request]

env:
WORKSPACE: ${{ github.workspace }}

jobs:
cppcheck:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup cppcheck
run: |
sudo apt-get update
sudo apt-get install cppcheck
- name: Run cppcheck
run: |
cd ${{ env.WORKSPACE }}
cppcheck --enable=all --output-file=cppcheck-result.txt --force --quiet -I Library Projects
- name: Setup reviewdog
uses: reviewdog/action-setup@80a06617492b461a66508e2dedf16233f0506804

- name: Comment GitHub Pull Request
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat cppcheck-result.txt | grep "\bwarning: " | reviewdog -efm="%f:%l:%c:%m" -reporter=github-pr-review -name="cppcheck-warning"
cat cppcheck-result.txt | grep "\berror: " | reviewdog -efm="%f:%l:%c:%m" -reporter=github-pr-review -name="cppcheck-error"
28 changes: 28 additions & 0 deletions .github/workflows/generate-doxygen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate-Doxygen

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Doxygen and Graphviz
run: sudo apt-get install doxygen graphviz

- name: Generate Documentation
run: |
cd ${{github.workspace}}/Document/Doxygen
doxygen Doxyfile
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ${{github.workspace}}/Document/Doxygen/html
2 changes: 1 addition & 1 deletion .github/workflows/image-combine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: ImageCombine
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-resize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: ImageResize

jobs:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/image-segment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: ImageSegment
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -26,8 +26,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Install opencv
run: |
Expand All @@ -37,7 +35,7 @@ jobs:
- name: Configure CMake
run: |
mkdir ${{github.workspace}}/build
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{env.WORK_SPACE}} -G "Unix Makefiles"
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S ${{env.WORK_SPACE}}/GeographicDataToSimulationGrid -G "Unix Makefiles"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.TARGET}} -j 12
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/land-and-water-convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: LandAndWaterConvert
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/reviewdog-cpplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Reviewdog-cpplint

on: [pull_request]

jobs:
cpplint:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: cpplint
uses: reviewdog/action-cpplint@b6c13159b10435813edfddea9e1cd02157544f45
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
flags: --linelength=150
filter: "build/include_alpha\
,build/include_what_you_use\
,build/storage_class\
,readability/braces\
,readability/casting\
,readability/fn_size\
,whitespace/braces\
,whitespace/comma\
,whitespace/comments\
,whitespace/end_of_line\
,whitespace/ending_newline\
,whitespace/indent\
,whitespace/newline\
,whitespace/operators\
,whitespace/parens\
,whitespace/line_length\
"
2 changes: 1 addition & 1 deletion .github/workflows/rivers-and-lakes-convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: RiversAndLakesConvert
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/soil-temperature-convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on : [ workflow_dispatch ]

env:
BUILD_TYPE: Debug
WORK_SPACE: ${{github.workspace}}/Project
WORK_SPACE: ${{github.workspace}}/Projects
TARGET: SoilTemperatureConvert
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,6 @@ AS_DEBUG/
.DS_Store
.vscode

2010/
2010/

Document/Doxygen/*/
Loading

0 comments on commit e744ae6

Please sign in to comment.