Skip to content

known broken: Integrate vcpkg into the .xcodeproj. #254

known broken: Integrate vcpkg into the .xcodeproj.

known broken: Integrate vcpkg into the .xcodeproj. #254

name: Unit Tests / Required / Dynamic / Linux
on: push
jobs:
test:
name: Ubuntu
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
build-type:
- Release
- Debug
steps:
- name: Install Dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get -qq update
sudo apt-get -qq upgrade -y
sudo apt-get -qq install -y --no-install-recommends \
ca-certificates \
git \
clang \
cmake \
make \
ccache \
libboost-dev \
libboost-filesystem-dev \
libboost-locale-dev \
libboost-regex-dev \
libboost-system-dev \
libcairo2-dev \
libglew-dev \
libglm-dev \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libvorbis-dev
- name: Checkout Anura
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
submodules: true
- name: Set ccache up
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9
with:
key: unit-tests-linux-${{ matrix.build-type }}
- name: Build Anura
env:
CXX: clang++
# Compile with number of available hyperthreads
run: |
cmake -DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" .
make -j "$(getconf _NPROCESSORS_ONLN)"
- name: Run Unit Tests
run: ./anura --tests