Skip to content

Fixes, balance, polish. (#53) #153

Fixes, balance, polish. (#53)

Fixes, balance, polish. (#53) #153

Workflow file for this run

name: ci
on:
push:
branches:
- '*'
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-24.04
steps:
- uses: actions/checkout@v4
- name: init
run: sudo apt update -yqq && sudo apt install -yqq ninja-build xorg-dev
- name: configure gcc
run: cmake -S . --preset=default -B build -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF
- name: configure clang
run: cmake -S . --preset=ninja-clang -B clang -DBAVE_BUILD_SHADERS=OFF -DBAVE_USE_FREETYPE=OFF -DCAPO_USE_OPENAL=OFF
- 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