Skip to content

Commit

Permalink
Add GitHub workflow CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Oct 20, 2023
1 parent 66868cf commit 8d7d9a3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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

0 comments on commit 8d7d9a3

Please sign in to comment.