mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-12-04 19:23:28 +01:00
merge test into main workflow
This commit is contained in:
parent
9f6e9defb0
commit
c4bd4fd678
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
|
||||
|
45
.github/workflows/test.yml
vendored
45
.github/workflows/test.yml
vendored
@ -1,45 +0,0 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
- push
|
||||
- workflow_dispatch
|
||||
|
||||
jobs:
|
||||
linux_tests:
|
||||
timeout-minutes: 10
|
||||
|
||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# TODO: cache
|
||||
|
||||
- name: Install Dependencies
|
||||
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=Debug
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config Debug -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
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user