mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Switch to container build with newer ubuntu
This allows us to use newer SDL which has native CMake export module
This commit is contained in:
parent
af27cd0099
commit
545f25e74a
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -2,7 +2,9 @@ name: CI
|
|||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ubuntu:rolling
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -38,19 +40,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
sudo apt-get install -qq libsdl2-dev cppcheck doxygen pulseaudio graphviz
|
apt-get update -qq
|
||||||
|
apt-get install -yqq --no-install-recommends build-essential clang cmake libsdl2-dev cppcheck doxygen pulseaudio graphviz xvfb
|
||||||
- name: Install dependencies (optional libs)
|
- name: Install dependencies (optional libs)
|
||||||
if: ${{ !contains(matrix.features, 'nooptlibs') }}
|
if: ${{ !contains(matrix.features, 'nooptlibs') }}
|
||||||
run: sudo apt-get install -qq libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
run: apt-get install -qq libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
||||||
- name: Install dependencies (coverage)
|
- name: Install dependencies (coverage)
|
||||||
if: ${{ contains(matrix.features, 'coverage') }}
|
if: ${{ contains(matrix.features, 'coverage') }}
|
||||||
run: pip install --user pyyaml cpp-coveralls
|
run: |
|
||||||
|
apt-get install -yqq --no-install-recommends python3-pip git curl
|
||||||
|
pip install --user pyyaml cpp-coveralls
|
||||||
|
|
||||||
- name: Set up environment for live tests
|
- name: Set up environment for live tests
|
||||||
run: |
|
run: |
|
||||||
pulseaudio --start --daemonize --disallow-exit --exit-idle-time -1
|
pulseaudio --daemonize --system || true
|
||||||
/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
|
/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 || true
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake . -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=/usr ${CMAKE_ARGS}
|
run: cmake . -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=/usr ${CMAKE_ARGS}
|
||||||
@ -59,7 +64,7 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ctest -V || true # TODO: debug failing live_mixer test
|
run: ctest -V || true # TODO: debug failing live_mixer test
|
||||||
- name: Install
|
- name: Install
|
||||||
run: sudo cmake --install .
|
run: cmake --install .
|
||||||
|
|
||||||
- name: Run cppcheck
|
- name: Run cppcheck
|
||||||
# `style' gives false positive in cppcheck 1.61 which comes with trusty
|
# `style' gives false positive in cppcheck 1.61 which comes with trusty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user