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 bc9588e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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 build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: FAKEMOTE
if-no-files-found: error
path: build/FAKEMOTE.app
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,4 @@ dkms.conf
*.jpg

# CMake
build*
!CMakeLists.txt

0 comments on commit bc9588e

Please sign in to comment.