foxygit / fake-08-xbox360 Log in
commit 5eb5c4f78728e264b78b6f9f046d3563a837af56
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Dec 22 20:51:26 2021 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Dec 22 20:51:26 2021 -0700

    Add bittboy CI build

    output not tested yet
---
 .github/workflows/build.yml       | 23 ++++++++++++++++++++++-
 .github/workflows/buildBittboy.sh |  7 +++++++
 platform/bittboy/Makefile         |  2 +-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 43d04d2..ddc6cee 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -87,8 +87,29 @@ jobs:
           name: PS Vita
           path: |
             platform/vita/*.vpk
-
+
   fifth:
+    name: Bittboy
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir mcejp/arm-miyoo-linux-musleabi-gcc /bin/sh -ex /build_dir/.github/workflows/buildBittboy.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Bittboy
+          path: |
+            platform/bittboy/FAKE08
+            platform/bittboy/pico8.elf
+
+  sixth:
     name: Tests
     runs-on: ubuntu-latest

diff --git a/.github/workflows/buildBittboy.sh b/.github/workflows/buildBittboy.sh
new file mode 100644
index 0000000..0ae84ea
--- /dev/null
+++ b/.github/workflows/buildBittboy.sh
@@ -0,0 +1,7 @@
+
+cd /build_dir
+
+#Build bittboy elf
+make bittboy
+
+cp platform/bittboy/FAKE08 platform/bittboy/pico8.elf
diff --git a/platform/bittboy/Makefile b/platform/bittboy/Makefile
index ab90030..99dfff4 100644
--- a/platform/bittboy/Makefile
+++ b/platform/bittboy/Makefile
@@ -15,7 +15,7 @@ INCLUDES	:=	${INCLUDES}
 # options for code generation
 #---------------------------------------------------------------------------------

-BIN_BASE = /opt/miyoo/bin/
+BIN_BASE = /opt/bittboy-toolchain/bin/

 CC = $(BIN_BASE)arm-linux-gcc
 CXX = $(BIN_BASE)arm-linux-g++