forked from NTUT-FUCK-PTSD/Fuck-PTSD
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow #6
Closed
Workflow #6
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
32d5c3d
new doxygen config
onon1101 bd0e708
fix the sdl2 not found
onon1101 abd51ca
test1
onon1101 4efe8c4
push
onon1101 04076c1
test
onon1101 ddd3d41
ninja
onon1101 d998dd3
remove ninja
onon1101 cc2ab78
test
onon1101 5a542de
test
onon1101 f961569
test
onon1101 c271a9a
test
onon1101 79928eb
test
onon1101 733b0eb
msvc
onon1101 9c79564
mingw
onon1101 793758e
mingw
onon1101 b004a11
test
onon1101 516f529
format
onon1101 9a7c729
test
onon1101 85c92a3
test
onon1101 ed0050f
test
onon1101 0f6bbec
test
onon1101 44f7826
test
onon1101 5cb1ed8
update
onon1101 9360c2a
test
onon1101 47a130b
Update SComponent.h
onon1101 1470707
test
onon1101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: clang-tidy-review | ||
|
||
# You can be more specific, but it currently only works on pull requests | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Optionally generate compile_commands.json | ||
|
||
- uses: ZedThree/[email protected] | ||
id: review | ||
|
||
# Uploads an artefact containing clang_fixes.json | ||
- uses: ZedThree/clang-tidy-review/[email protected] | ||
id: upload-review | ||
|
||
# If there are any comments, fail the check | ||
- if: steps.review.outputs.total_comments > 0 | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,70 @@ | ||
name: Compile | ||
|
||
name: main-before | ||
|
||
on: | ||
on: | ||
merge_group: | ||
pull_request: | ||
|
||
# linux-gcc | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- os: ubuntu-latest | ||
compiler: gcc | ||
generator: Ninja | ||
deps_cmdline: sudo apt-get update && sudo apt-get -y install gcc cmake ninja-build libglu1-mesa-dev mesa-common-dev xorg-dev | ||
- os: ubuntu-latest | ||
compiler: clang | ||
generator: Ninja | ||
deps_cmdline: sudo apt-get update && sudo apt-get -y install clang cmake ninja-build libglu1-mesa-dev mesa-common-dev xorg-dev | ||
- os: windows-latest | ||
compiler: msvc | ||
generator: Visual Studio 17 2022 | ||
- os: windows-latest | ||
compiler: mingw | ||
generator: MinGW Makefiles | ||
- os: macos-latest | ||
compiler: clang | ||
generator: Ninja | ||
deps_cmdline: brew install cmake ninja mesa-glu mesa xorg-server | ||
|
||
- name: Installing Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install gcc cmake ninja-build libglu1-mesa-dev mesa-common-dev xorg-dev | ||
steps: | ||
- if: matrix.config.os == 'windows-latest' && matrix.config.compiler == 'mingw' | ||
name: "Set Windows-MinGW-Compiler" | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Building Project | ||
if: matrix.os == 'ubuntu-latest' | ||
env: | ||
CC: gcc | ||
CXX: g++ | ||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
cmake --build build | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-latest] | ||
# compiler: [{ cc: gcc, cxx: g++ }, { cc: clang, cxx: clang++ }] | ||
# build_type: [Debug] | ||
# binary: [linux-binary] | ||
# include: | ||
# - os: windows-latest | ||
# build_type: Debug | ||
# binary: windows-binary | ||
|
||
# steps: | ||
# - if: matrix.os == 'ubuntu-latest' | ||
# name: Installing Dependencies | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get -y install ${{ matrix.compiler.cc }} cmake ninja-build libglu1-mesa-dev mesa-common-dev xorg-dev | ||
|
||
# - name: Checkout Repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: recursive | ||
if [[ ! -z "${{ matrix.config.deps_cmdline }}" ]]; then | ||
eval ${{ matrix.config.deps_cmdline }} | ||
fi | ||
|
||
# - name: Check Format | ||
# if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'clang' | ||
# run: | | ||
# find src/ include/ test/ assets/shaders/ -name "*.*" -print0 | \ | ||
# xargs -0 clang-format --dry-run --Werror --ferror-limit=15 | ||
|
||
# - name: Building Project | ||
# if: matrix.os == 'ubuntu-latest' | ||
# env: | ||
# CC: ${{ matrix.compiler.cc }} | ||
# CXX: ${{ matrix.compiler.cxx }} | ||
# run: | | ||
# cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
# cmake --build build | ||
|
||
# - name: Run Linter | ||
# if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'clang' | ||
# run: | | ||
# find src/ include/ test/ -name "*.*" -print0 | \ | ||
# xargs -0 run-clang-tidy true -p build | ||
- name: "Setup cmake" | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=Debug -G "${{ matrix.config.generator }}" | ||
cmake --build build | ||
|
||
# - name: Building Project | ||
# if: matrix.os == 'windows-latest' | ||
# run: | | ||
# cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
# cmake --build build --config ${{ matrix.build_type }} | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- "src" | ||
- "include" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: "18" | ||
check-path: ${{ matrix.path }} | ||
fallback-style: "Mozilla" # optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PROJECT_NAME = "something" | ||
OUTPUT_DIRECTORY = ./doxydoc/ | ||
BUILTIN_STL_SUPPORT = YES | ||
EXTRACT_ALL = YES | ||
INPUT = ./src ./include | ||
RECURSIVE = YES | ||
HIDE_UNDOC_RELATIONS = NO | ||
HAVE_DOT = YES | ||
UML_LOOK = YES | ||
CALL_GRAPH = YES | ||
CALLER_GRAPH = YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'Equipment/Shovel/EntityShovel.h' file not found [clang-diagnostic-error]