Skip to content

Commit 5cd5abc

Browse files
authored
Merge pull request #3 from WiiDatabase/aroma
Port to Aroma
2 parents 41161dc + 9dbb360 commit 5cd5abc

File tree

11 files changed

+343
-363
lines changed

11 files changed

+343
-363
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI-Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
clang-format:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: clang-format
15+
run: |
16+
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./src
17+
build-binary:
18+
runs-on: ubuntu-22.04
19+
needs: clang-format
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: build binary
23+
run: |
24+
docker build . -t builder
25+
docker run --rm -v ${PWD}:/project builder make
26+
- uses: actions/upload-artifact@master
27+
with:
28+
name: binary
29+
path: "*.wps"
30+
deploy-binary:
31+
needs: build-binary
32+
runs-on: ubuntu-22.04
33+
steps:
34+
- name: Get environment variables
35+
id: get_repository_name
36+
run: |
37+
echo REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
38+
echo DATETIME=$(echo $(date '+%Y%m%d-%H%M%S')) >> $GITHUB_ENV
39+
- uses: actions/download-artifact@master
40+
with:
41+
name: binary
42+
- name: zip artifact
43+
run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip *.wps
44+
- name: Create Release
45+
id: create_release
46+
uses: actions/create-release@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
tag_name: ${{ env.REPOSITORY_NAME }}-${{ env.DATETIME }}
51+
release_name: Nightly-${{ env.REPOSITORY_NAME }}-${{ env.DATETIME }}
52+
draft: false
53+
prerelease: true
54+
body: |
55+
Not a stable release:
56+
${{ github.event.head_commit.message }}
57+
- name: Upload Release Asset
58+
id: upload-release-asset
59+
uses: actions/upload-release-asset@v1
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
64+
asset_path: ./${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip
65+
asset_name: ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip
66+
asset_content_type: application/zip

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI-PR
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
clang-format:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: clang-format
11+
run: |
12+
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./src
13+
build-binary:
14+
runs-on: ubuntu-22.04
15+
needs: clang-format
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: build binary
19+
run: |
20+
docker build . -t builder
21+
docker run --rm -v ${PWD}:/project builder make
22+
- uses: actions/upload-artifact@master
23+
with:
24+
name: binary
25+
path: "*.wps"

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build/
2+
.idea/
3+
*.elf
4+
*.wps
5+
cmake-build-debug/
6+
CMakeLists.txt
7+

.vscode/c_cpp_properties.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"/opt/devkitpro/devkitPPC/powerpc-eabi/include/**",
8+
"/opt/devkitpro/devkitPPC/include/**",
9+
"/opt/devkitpro/portlibs/ppc/include/**",
10+
"/opt/devkitpro/portlibs/wiiu/include/**",
11+
"/opt/devkitpro/wut/include/**",
12+
"/opt/devkitpro/wups/include/**"
13+
],
14+
"defines": [],
15+
"compilerPath": "/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc",
16+
"cStandard": "gnu17",
17+
"cppStandard": "gnu++17",
18+
"intelliSenseMode": "linux-gcc-x64"
19+
}
20+
],
21+
"version": 4
22+
}

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-vscode.cpptools",
4+
"xaver.clang-format"
5+
]
6+
}

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM wiiuenv/devkitppc:20220907
2+
3+
COPY --from=wiiuenv/wiiupluginsystem:20220904 /artifacts $DEVKITPRO
4+
5+
WORKDIR project

0 commit comments

Comments
 (0)