-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 03ada1c
Showing
27 changed files
with
2,861 additions
and
0 deletions.
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,67 @@ | ||
# Generated from CLion C/C++ Code Style settings | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: Consecutive | ||
AlignConsecutiveMacros: AcrossEmptyLinesAndComments | ||
AlignOperands: Align | ||
AllowAllArgumentsOnNextLine: false | ||
AllowAllConstructorInitializersOnNextLine: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: Always | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: Always | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: Never | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeColon | ||
BreakInheritanceList: BeforeColon | ||
ColumnLimit: 0 | ||
CompactNamespaces: false | ||
ContinuationIndentWidth: 8 | ||
IndentCaseLabels: true | ||
IndentPPDirectives: None | ||
IndentWidth: 4 | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: All | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PointerAlignment: Right | ||
ReflowComments: false | ||
SpaceAfterCStyleCast: true | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: false | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
TabWidth: 4 | ||
UseTab: Never |
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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,59 @@ | ||
name: CI-Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: clang-format | ||
run: | | ||
docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source | ||
build-binary: | ||
runs-on: ubuntu-22.04 | ||
needs: clang-format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: create version.h | ||
run: | | ||
git_hash=$(git rev-parse --short "$GITHUB_SHA") | ||
cat <<EOF > ./source/version.h | ||
#pragma once | ||
#define SPLASHSCREEN_MODULE_VERSION_EXTRA " (nightly-$git_hash)" | ||
EOF | ||
- name: build binary | ||
run: | | ||
docker build . -t builder | ||
docker run --rm -v ${PWD}:/project builder make | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: binary | ||
path: "*.rpx" | ||
deploy-binary: | ||
needs: build-binary | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Get environment variables | ||
id: get_repository_name | ||
run: | | ||
echo REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV | ||
echo DATETIME=$(echo $(date '+%Y%m%d-%H%M%S')) >> $GITHUB_ENV | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: binary | ||
- name: zip artifact | ||
run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip *.rpx | ||
- name: Create Release | ||
uses: "softprops/action-gh-release@v2" | ||
with: | ||
tag_name: ${{ env.REPOSITORY_NAME }}-${{ env.DATETIME }} | ||
draft: false | ||
prerelease: true | ||
generate_release_notes: true | ||
name: Nightly-${{ env.REPOSITORY_NAME }}-${{ env.DATETIME }} | ||
files: | | ||
./${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip |
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,43 @@ | ||
name: CI-PR | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: clang-format | ||
run: | | ||
docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source | ||
check-build-with-logging: | ||
runs-on: ubuntu-22.04 | ||
needs: clang-format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: build binary with logging | ||
run: | | ||
docker build . -t builder | ||
docker run --rm -v ${PWD}:/project builder make DEBUG=VERBOSE | ||
docker run --rm -v ${PWD}:/project builder make clean | ||
docker run --rm -v ${PWD}:/project builder make DEBUG=1 | ||
build-binary: | ||
runs-on: ubuntu-22.04 | ||
needs: clang-format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: create version.h | ||
run: | | ||
git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}") | ||
cat <<EOF > ./source/version.h | ||
#pragma once | ||
#define SPLASHSCREEN_MODULE_VERSION_EXTRA " (nightly-$git_hash)" | ||
EOF | ||
- name: build binary | ||
run: | | ||
docker build . -t builder | ||
docker run --rm -v ${PWD}:/project builder make | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: binary | ||
path: "*.rpx" |
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,8 @@ | ||
*.elf | ||
*.rpx | ||
build/ | ||
.idea/ | ||
.vscode/ | ||
cmake-build-debug/ | ||
CMakeLists.txt | ||
*.zip |
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,3 @@ | ||
FROM ghcr.io/wiiu-env/devkitppc:20240704 | ||
|
||
WORKDIR project |
Oops, something went wrong.