generated from MechanicalFlower/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0598929
commit 578dd8e
Showing
4 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Setup Godot | ||
description: Setup Godot dependencies. | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Installing Linux dependencies | ||
if: ${{ runner.os == 'Linux' }} | ||
shell: bash | ||
run: sudo apt-get install -y pulseaudio xvfb x11-xserver-utils mesa-vulkan-drivers | ||
|
||
- name: Starting X11 server on :0 | ||
if: ${{ runner.os == 'Linux' }} | ||
shell: bash | ||
run: xset -q || /bin/bash -c "sudo Xvfb -ac :0 -screen 0 1920x1080x24 > /dev/null 2>&1 &" | ||
env: | ||
DISPLAY: ":0" | ||
|
||
- name: Check that X11 server is running | ||
if: ${{ runner.os == 'Linux' }} | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 1 | ||
max_attempts: 5 | ||
command: /bin/bash -c "xset -q > /dev/null 2>&1" | ||
env: | ||
DISPLAY: ":0" | ||
|
||
- name: Starting dummy sound device | ||
if: ${{ runner.os == 'Linux' }} | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 1 | ||
max_attempts: 3 | ||
command: pulseaudio --check || pulseaudio -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters