Fix incomplete type issue #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:24.04 | |
strategy: | |
matrix: | |
include: | |
- { cxx: g++ } | |
- { cxx: clang++ } | |
fail-fast: false | |
name: ${{ matrix.cxx }} | |
steps: | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update -qq | |
apt-get install -yqq --no-install-recommends build-essential clang libclang-rt-dev cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev curl ca-certificates ninja-build git | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
#- name: Checkout submodules | |
# run: git submodule init && git submodule update | |
- name: Configure | |
run: cmake . -G Ninja -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER="${{ matrix.cxx }}" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror" | |
- name: Build | |
run: cmake --build . | |
- name: Run tests | |
run: ctest -V | |
- name: Install | |
run: cmake --install . |