mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-08 13:15:31 +02: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
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
|
@ -271,9 +271,16 @@ jobs:
|
|||
uses: lihop/setup-godot@v2
|
||||
with:
|
||||
version: "4.2.1-stable"
|
||||
- name: Install molten-vk
|
||||
- name: Macos setup
|
||||
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
|
||||
uses: taiki-e/install-action@just
|
||||
- name: Install dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue