Skip to content

Try fix Windows workflow #10

Try fix Windows workflow

Try fix Windows workflow #10

name: Build and run tests on Linux
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |-
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt-get update
sudo apt install \
libboost-all-dev libsdl2-dev libglew-dev libopenal-dev libmad0-dev libwxgtk3.0-gtk3-dev libgmock-dev \
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build .
- name: Run Unit Tests
working-directory: ${{github.workspace}}/build
shell: bash
run: ctest -VV