mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-12-06 08:46:34 +01:00
merge test into main workflow
This commit is contained in:
19
.github/workflows/cmake.yml
vendored
19
.github/workflows/cmake.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
# TODO: cache
|
||||
|
||||
- name: Install Dependencies
|
||||
run: sudo apt update && sudo apt -y install libsdl2-dev
|
||||
run: sudo apt update && sudo apt -y install libsdl2-dev xserver-xorg-video-dummy
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
@@ -37,11 +37,20 @@ jobs:
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4
|
||||
|
||||
#- name: Test
|
||||
#working-directory: ${{github.workspace}}/build
|
||||
## Execute tests defined by the CMake configuration.
|
||||
## See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
||||
- name: Test
|
||||
working-directory: ${{github.workspace}}/build
|
||||
# Execute tests defined by the CMake configuration.
|
||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
||||
#run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
|
||||
# TODO: look into xinit
|
||||
env:
|
||||
DISPLAY: :0
|
||||
run: |
|
||||
sudo Xorg :0 -config ${{github.workspace}}/.github/workflows/x/dummy-1920x1080.conf -noautoBindGPU &
|
||||
sleep 20s
|
||||
ctest --output-on-failure --timeout 20
|
||||
sudo pkill -15 Xorg
|
||||
|
||||
|
||||
linux_gles:
|
||||
timeout-minutes: 10
|
||||
|
||||
Reference in New Issue
Block a user