mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-24 10:20:24 +01:00
Detect rendering driver to use with macos runner
This commit is contained in:
parent
60054e7ee0
commit
b3ea3d4482
3 changed files with 13 additions and 3 deletions
|
@ -3,3 +3,6 @@
|
||||||
|
|
||||||
# Name or path to your Godot executable
|
# Name or path to your Godot executable
|
||||||
GODOT=godot
|
GODOT=godot
|
||||||
|
|
||||||
|
# Rendering driver
|
||||||
|
RENDERING_DRIVER=vulkan
|
||||||
|
|
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
|
@ -271,9 +271,16 @@ jobs:
|
||||||
uses: lihop/setup-godot@v2
|
uses: lihop/setup-godot@v2
|
||||||
with:
|
with:
|
||||||
version: "4.2.1-stable"
|
version: "4.2.1-stable"
|
||||||
- name: Install molten-vk
|
- name: Macos setup
|
||||||
if: ${{ matrix.platform == 'macos' && matrix.test-type == 'rendering' }}
|
if: ${{ matrix.platform == 'macos' && matrix.test-type == 'rendering' }}
|
||||||
run: brew install molten-vk
|
run: |
|
||||||
|
# Some macos runners have metal which means we can use vulkan, others don't.
|
||||||
|
if system_profiler SPDisplaysDataType | grep -q "Metal"; then
|
||||||
|
echo RENDERING_DRIVER=vulkan >> .env
|
||||||
|
brew install molten-vk
|
||||||
|
else
|
||||||
|
echo RENDERING_DRIVER=opengl3 >> .env
|
||||||
|
fi
|
||||||
- name: Install just
|
- name: Install just
|
||||||
uses: taiki-e/install-action@just
|
uses: taiki-e/install-action@just
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
2
Justfile
2
Justfile
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
set dotenv-load
|
set dotenv-load
|
||||||
|
|
||||||
godot := `echo "${GODOT:-godot}"`
|
godot := `echo "${GODOT:-godot} --rendering-driver ${RENDERING_DRIVER:-vulkan}"`
|
||||||
|
|
||||||
build:
|
build:
|
||||||
cd addons/godot_xterm/native && scons
|
cd addons/godot_xterm/native && scons
|
||||||
|
|
Loading…
Reference in a new issue