Skip to content

Put test build output in ordinary build directory #1129

Put test build output in ordinary build directory

Put test build output in ordinary build directory #1129

Workflow file for this run

name: "CI: Ubuntu"
on: [ push ]
env:
DISPLAY: :99.0
SDL_VIDEODRIVER: x11
VCPKG_ROOT: ${{github.workspace}}/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}/vcpkg/bincache
VCPKG_CACHE_EDITION: 1
jobs:
ubuntu-latest-test:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[skip-ci]') == false
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Install system dependencies
run: |
sudo apt update
sudo apt install ninja-build \
libegl1-mesa-dev \
libgles2-mesa-dev \
libgl-dev \
libasound2-dev \
libpulse-dev \
libx11-dev \
libxmu-dev \
libxi-dev \
xvfb
- name: Cache Vcpkg
id: restore-vcpkg-and-artifacts
uses: actions/cache@v3
with:
path: |
${{env.VCPKG_ROOT}}
!${{env.VCPKG_ROOT}}\buildtrees
!${{env.VCPKG_ROOT}}\packages
!${{env.VCPKG_ROOT}}\downloads
!${{env.VCPKG_ROOT}}\installed
key: tactile-linux-vcpkg-${{hashFiles('vcpkg.json')}}-${{env.VCPKG_CACHE_EDITION}}
- name: Install Vcpkg
if: steps.restore-vcpkg-and-artifacts.outputs.cache-hit != 'true'
run: |
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh -disableMetrics
sudo ./vcpkg/vcpkg integrate install
- name: Create directory ${{env.VCPKG_DEFAULT_BINARY_CACHE}}
if: steps.restore-vcpkg-and-artifacts.outputs.cache-hit != 'true'
run: mkdir -p ${{env.VCPKG_DEFAULT_BINARY_CACHE}}
- name: Emulate video device
run: |
/sbin/start-stop-daemon --start \
--pidfile /tmp/custom_xvfb_99.pid \
--make-pidfile \
--background \
--exec /usr/bin/Xvfb -- :99 -screen 0 800x600x24 -ac +extension GLX;
sleep 3
- name: Generate build files
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: |
mkdir build && cd build
cmake .. -GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DTACTILE_USE_SANITIZERS=OFF \
-DTACTILE_BUILD_TESTS=ON \
--log-level=DEBUG
- name: Build
run: ninja -C build
- name: Run core tests
working-directory: ./build/debug/test
run: ./tactile-core-test