2019-11-20 17:02:38 +00:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-07-07 16:13:26 +01:00
|
|
|
name: ubuntu-18.04
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
container: devkitpro/devkitppc:latest
|
|
|
|
|
2019-11-20 17:02:38 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2020-07-07 16:13:26 +01:00
|
|
|
|
|
|
|
- name: install cmake
|
2019-11-20 17:02:38 +00:00
|
|
|
run: |
|
2020-07-07 16:13:26 +01:00
|
|
|
apt-get install -y cmake
|
2019-11-20 17:02:38 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make -j2
|
2020-08-10 12:55:10 -04:00
|
|
|
make install
|
2019-11-20 17:02:38 +00:00
|
|
|
|
|
|
|
- name: Build Test
|
|
|
|
run: |
|
|
|
|
cd tests
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake ../
|
|
|
|
make -j2
|
|
|
|
|
|
|
|
- name: Build Samples (Make)
|
|
|
|
run: |
|
|
|
|
cd samples/make
|
|
|
|
make -j2
|
|
|
|
|
|
|
|
- name: Build Samples (CMake)
|
|
|
|
run: |
|
|
|
|
cd samples/cmake
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake ../
|
|
|
|
make -j2
|