Make SpawnTimer
polymorphic, store vector.
#147
Workflow file for this run
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] | |
jobs: | |
format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: format code | |
run: tools/format_code.sh | |
- name: check diff | |
run: .github/format_check_diff.sh | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: init | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev g++-13 | |
- name: configure gcc | |
run: cmake -S . --preset=default -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF -DCMAKE_CXX_COMPILER=g++-13 | |
- name: configure clang | |
run: cmake -S . --preset=default -B clang -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF -DCMAKE_CXX_COMPILER=clang++-15 | |
- name: build gcc | |
run: cmake --build build --config=Release -- -d explain | |
- name: build clang | |
run: cmake --build clang --config=Release | |
- name: test | |
run: cd build && ctest -C Release | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: configure | |
run: cmake -S . --preset=vs22 -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF | |
- name: build | |
run: cmake --build build --config=Release | |
- name: test | |
run: cd build && ctest -C Release | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: init | |
run: brew install ninja | |
- name: configure | |
run: cmake -S . --preset=default -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF | |
- name: build | |
run: cmake --build build --config=Release -- -d explain | |
- name: test | |
run: cd build && ctest -C Release | |
build-android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: init | |
run: | | |
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz | |
tar xvzf jdk-17_linux-x64_bin.tar.gz -C /opt | |
- name: build | |
run: | | |
export JAVA_HOME=$(find /opt -name "jdk-17.*") | |
cd src/android | |
./gradlew assembleDebug |