From 8d7d9a3aaffbce9fd6c714bd396389538292bb1a Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Fri, 20 Oct 2023 10:52:07 +0200 Subject: [PATCH] Add GitHub workflow CI --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e7dffe8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: C/C++ CI + +on: [push, pull_request] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + container: devkitpro/devkitarm:latest + + steps: + - uses: actions/checkout@v3.5.2 + + - name: Install g++ + run: sudo apt-get update -y && sudo apt-get install g++ -y + + - name: Install stripios + run : | + wget https://raw.githubusercontent.com/Leseratte10/d2xl-cios/master/stripios/main.cpp + g++ main.cpp -o stripios + mv stripios ${DEVKITPRO}/tools/bin + rm -f main.cpp + + - name: Configure CMake + run: ${DEVKITARM}/bin/arm-none-eabi-cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - uses: actions/upload-artifact@v3 + with: + name: FAKEMOTE.app + path: ${{github.workspace}}/build/FAKEMOTE.app