-
Notifications
You must be signed in to change notification settings - Fork 29
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
1 parent
53fe6e9
commit 06ed9fc
Showing
10 changed files
with
161 additions
and
85 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,57 @@ | ||
name: Compile and verify functions | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
compile_verify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out project | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Check for W-state functions | ||
run: | | ||
if grep -q ",W," "data/odyssey_functions.csv"; then | ||
echo "Function list should not contain WIP-functions!" | ||
echo "Found the following lines:" | ||
grep ",W," "data/odyssey_functions.csv" | ||
exit 1 | ||
fi | ||
- name: Set up dependencies | ||
run: | | ||
sudo apt install -y python3-pip ninja-build cmake ccache xdelta3 clang libssl-dev python-is-python3 curl libncurses5 | ||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pip' | ||
- name: Set up python package dependencies | ||
run: pip install capstone colorama cxxfilt pyelftools ansiwrap watchdog python-Levenshtein toml | ||
- name: Set up rust toolchain | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
cache: false | ||
- name: Set up rust caching | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "tools/common/viking" | ||
cache-directories: | | ||
toolchain/clang-3.9.1 | ||
toolchain/clang-4.0.1 | ||
- name: Download main.nso from secret | ||
env: | ||
EXEFS_SHARED_PASS: ${{ secrets.EXEFS_SHARED_PASS }} | ||
run: curl -u "github-odyssey:$EXEFS_SHARED_PASS" https://monsterdruide.one/secrets/smo-main.nso -O | ||
- name: Run setup | ||
run: tools/setup.py smo-main.nso | ||
- name: Build project | ||
run: tools/build.py | ||
- name: Verify function states | ||
run: | | ||
var="$(tools/check 2>&1)" | ||
if [[ "$var" == "OK" ]]; then | ||
exit 0 | ||
else | ||
echo $var; | ||
exit 1 | ||
fi |
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,12 @@ | ||
name: lint | ||
on: [push, pull_request] | ||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: 'src lib' | ||
exclude: 'lib/NintendoSDK lib/aarch64 lib/agl lib/eui lib/sead' | ||
clangFormatVersion: 12 |
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
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 |
---|---|---|
|
@@ -122,5 +122,4 @@ void addVelocityZ(al::LiveActor* actor, f32 z) { | |
currentVelocity->z += z; | ||
} | ||
|
||
|
||
} // namespace al |
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.