mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-28 01:37:58 +03:00
If -debug_dap flag is given, xsystem35 speaks the Debug Adapter Protocol (https://microsoft.github.io/debug-adapter-protocol/) via stdin/stdout. This enables xsystem35 to work as a backend of VS Code's Debugger (and possibly other debuggers that support DAP).
30 lines
721 B
YAML
30 lines
721 B
YAML
name: Linux Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
build-type: ["Debug", "Release"]
|
|
|
|
name: Linux ${{ matrix.build-type }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Deps
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libgtk-3-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libportmidi-dev libcjson-dev
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir -p out/${{ matrix.build-type }}
|
|
cd out/${{ matrix.build-type }}
|
|
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ../../
|
|
make
|
|
|
|
- name: Test
|
|
run: ctest --output-on-failure
|
|
working-directory: out/${{ matrix.build-type }}
|