Skip to content

Send DS's SDL to clients from the AuthSrv #97

Send DS's SDL to clients from the AuthSrv

Send DS's SDL to clients from the AuthSrv #97

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libpq-dev libreadline-dev
- name: Build string_theory
run: |
mkdir -p build_deps && cd build_deps
git clone https://github.com/zrax/string_theory
mkdir -p string_theory/build && cd string_theory/build
cmake -DCMAKE_BUILD_TYPE=Debug -DST_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/build_deps/prefix" ..
make -j2 && make install
- name: Build dirtsand
run: |
if [[ "${{ matrix.compiler }}" == "clang" ]]; then
EXTRA_CMAKE_PARAMS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++"
fi
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/build_deps/prefix" \
${EXTRA_CMAKE_PARAMS} ..
make -j2
make test