Skip to content

Commit

Permalink
Run godot in headless mode in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Jul 26, 2022
1 parent 072da42 commit e68d3fd
Show file tree
Hide file tree
Showing 13 changed files with 184 additions and 520 deletions.
97 changes: 50 additions & 47 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,17 @@ jobs:
- name: 'Setup project'
run: |
set -eux
python .github/scripts/meson_setup_or_dump_log.py build/ -D headless=true
python .github/scripts/meson_setup_or_dump_log.py build/
- name: 'Build project'
run: |
set -eux
meson compile -C build/
- name: 'Start xvfb'
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
- name: 'Run tests'
run: |
set -eux
python tests/run.py helloworld --build-dir build/
env:
DISPLAY: ':99.0'
python tests/run.py helloworld \
--build-dir build/ \
-- --display-driver headless
# - name: 'Generate artifact archive'
# run: |
# set -eux
Expand Down Expand Up @@ -133,10 +129,18 @@ jobs:
pip install -r requirements.in
- name: 'Setup project'
run: |
python .github/scripts/meson_setup_or_dump_log.py build/ -D headless=true
set -eux
python .github/scripts/meson_setup_or_dump_log.py build/
- name: 'Build project'
run: |
set -eux
meson compile -C build/
- name: 'Run tests'
run: |
set -eux
python tests/run.py helloworld \
--build-dir build/ \
-- --display-driver headless
# - name: 'Install Mesa3D OpenGL'
# shell: bash
# run: |
Expand Down Expand Up @@ -173,44 +177,43 @@ jobs:
#################################################################################


# macos-build:
# name: '🍎 macOS build'
# runs-on: macos-latest
# env:
# CC: clang
# LD: lld
# PLATFORM: 'osx-x86_64'
# steps:
# - name: 'Checkout'
# uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2
# with:
# submodules: true
# - name: 'Set up Python'
# uses: actions/setup-python@0291cefc54fa79cd1986aee8fa5ecb89ad4defea # pin@v2
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# - name: 'Setup venv'
# run: |
# set -eux
# ${{ env.CC }} --version
# python --version
# brew update
# brew install zlib openssl
# brew install --cask xquartz
# pip install -U pip
# pip install -r requirements.txt
# - name: 'Setup project'
# run: |
# set -eux
# meson setup build/ -D headless=true
# - name: 'Build project'
# run: |
# set -eux
# meson compile -C build/
# - name: 'Run tests'
# run: |
# set -eux
# python tests/run.py --build-dir build/ --godot-binary ${{ GODOT_BINARY_VERSION }}
macos-build:
name: '🍎 macOS build'
runs-on: macos-latest
env:
CC: clang
LD: lld
PLATFORM: 'macos-x86_64'
steps:
- name: 'Checkout'
uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2
with:
submodules: true
- name: 'Set up Python'
uses: actions/setup-python@0291cefc54fa79cd1986aee8fa5ecb89ad4defea # pin@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 'Setup venv'
run: |
set -eux
${{ env.CC }} --version
python --version
pip install -U pip
pip install -r requirements.txt
- name: 'Setup project'
run: |
set -eux
python .github/scripts/meson_setup_or_dump_log.py build/
- name: 'Build project'
run: |
set -eux
meson compile -C build/
- name: 'Run tests'
run: |
set -eux
python tests/run.py helloworld \
--build-dir build/ \
-- --display-driver headless
# - name: 'Generate artifact archive'
# run: |
# set -eux
Expand Down
70 changes: 0 additions & 70 deletions build_tools/dist.py

This file was deleted.

124 changes: 0 additions & 124 deletions build_tools/godot_binary.py

This file was deleted.

Loading

0 comments on commit e68d3fd

Please sign in to comment.