install non-dev libs; start X server

develop
Myk Taylor 2023-09-24 22:00:03 -07:00
parent 0d7f9a401f
commit b3fdaa54c5
No known key found for this signature in database
1 changed files with 8 additions and 1 deletions

@ -83,7 +83,9 @@ jobs:
if: matrix.os == 'ubuntu' if: matrix.os == 'ubuntu'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-image-dev sudo apt-get install \
libsdl2-2.0-0 \
libsdl2-image-2.0-0
- name: Clone DFHack - name: Clone DFHack
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -121,8 +123,13 @@ jobs:
- name: Install DFHack - name: Install DFHack
shell: bash shell: bash
run: tar xjf test-${{ matrix.compiler }}.tar.bz2 -C ${{ env.DF_FOLDER }} run: tar xjf test-${{ matrix.compiler }}.tar.bz2 -C ${{ env.DF_FOLDER }}
- name: Start X server
if: matrix.os == 'ubuntu'
run: Xvfb :0 -screen 0 1600x1200x32 &
- name: Run lua tests - name: Run lua tests
timeout-minutes: 10 timeout-minutes: 10
env:
DISPLAY: :0
run: python ci/run-tests.py --keep-status "${{ env.DF_FOLDER }}" run: python ci/run-tests.py --keep-status "${{ env.DF_FOLDER }}"
- name: Check RPC interface - name: Check RPC interface
run: python ci/check-rpc.py "${{ env.DF_FOLDER }}/dfhack-rpc.txt" run: python ci/check-rpc.py "${{ env.DF_FOLDER }}/dfhack-rpc.txt"