Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement initial visual impairment accessibility addons #221

Merged
merged 1 commit into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 38 additions & 5 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,52 @@ jobs:
bin: godot.x11.opt.32
template: godot_32
videodecoder: x11_32
godot-tts: target/release/32
- name: 64 Bits
bits: 64
bin: godot.x11.opt.64
template: godot_64
videodecoder: x11
godot-tts: target/release

steps:
- name: "Checkout RetroHub"
uses: actions/checkout@v3
with:
path: "retrohub"

- name : "Load cached objects (Godot editor)"
- name: "Load cached objects (Godot editor)"
uses: actions/cache@v3
id: "cache_editor"
with:
path: cached_builds/editor/godot
key: editor-build
continue-on-error: true
- name : "Load cached objects (Godot templates)"

- name: "Load cached objects (Godot templates)"
uses: actions/cache@v3
id: "cache_template"
with:
path: cached_builds/template/godot_${{ matrix.bits }}
key: Linux-${{ matrix.bits }}-template-build
continue-on-error: true
- name : "Load cached objects (Videodecoder)"

- name: "Load cached objects (Videodecoder)"
uses: actions/cache@v3
id: "cache_videodecoder"
with:
path: cached_builds/videodecoder/${{ matrix.videodecoder }}
key: Linux-${{ matrix.bits }}-videodecoder-build
continue-on-error: true

- name: "load cached objects (godot-tts)"
uses: actions/cache@v3
id: "cache_tts"
with:
path: cached_builds/tts/${{ matrix.bits }}
key: Linux-${{ matrix.bits }}-tts-build
continue-on-error: true

- name: "Checkout Custom Godot"
if: steps.cache_template.outputs.cache-hit != 'true'
uses: actions/checkout@v3
Expand All @@ -69,6 +79,24 @@ jobs:
submodules: recursive
path: "videodecoder"

- name: "Download godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
uses: robinraju/release-downloader@v1.7
with:
repository: retrohub-org/godot-tts
tag: v1.0.0
fileName: godot-tts.zip
tarBall: false
zipBall: false
out-file-path: ""

- name: "Cache godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
run: |
unzip godot-tts.zip -d $RUNNER_TEMP
mkdir -p -v cached_builds/tts/${{ matrix.bits }}
mv -v $RUNNER_TEMP/godot-tts/${{ matrix.godot-tts }}/*.so cached_builds/tts/${{ matrix.bits }}

- name: "[Videodecoder] Compilation"
if: steps.cache_videodecoder.outputs.cache-hit != 'true'
working-directory: ./videodecoder
Expand Down Expand Up @@ -147,6 +175,11 @@ jobs:
- name: "Package default themes"
uses: ./retrohub/.github/actions/get-default-themes

- name: "Package godot-tts"
run: |
mkdir -p -v retrohub/addons/godot-tts/${{ matrix.godot-tts }}
cp -r -v cached_builds/tts/${{ matrix.bits }}/* retrohub/addons/godot-tts/${{ matrix.godot-tts }}

- name: "Exporting RetroHub"
working-directory: retrohub
run: |
Expand Down
51 changes: 42 additions & 9 deletions .github/workflows/mac_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: "macos-12"
name: Extract SDK
steps:
- name : "Load cache"
- name: "Load cache"
uses: actions/cache@v3
id: "cache"
with:
Expand Down Expand Up @@ -41,15 +41,15 @@ jobs:
name: Compile FFMPEG

steps:
- name : "Load cache (SDK)"
- name: "Load cache (SDK)"
uses: actions/cache@v3
id: "cache-sdk"
with:
path: ~/cached_builds/sdk
key: MacOS-sdk
continue-on-error: false
- name : "Load cache (videodecoder)"

- name: "Load cache (videodecoder)"
uses: actions/cache@v3
id: "cache-videodecoder"
with:
Expand Down Expand Up @@ -85,30 +85,38 @@ jobs:
with:
path: "retrohub"

- name : "Load cached objects (Godot editor)"
- name: "Load cached objects (Godot editor)"
uses: actions/cache@v3
id: "cache_editor"
with:
path: cached_builds/editor/Godot.app
key: MacOS-editor-build
continue-on-error: true
- name : "Load cached objects (Godot templates)"

- name: "Load cached objects (Godot templates)"
uses: actions/cache@v3
id: "cache_template"
with:
path: cached_builds/template/osx.zip
key: MacOS-template-build
continue-on-error: true
- name : "Load cached objects (Videodecoder)"

- name: "Load cached objects (Videodecoder)"
uses: actions/cache@v3
id: "cache_videodecoder"
with:
path: cached_builds/videodecoder/osx
key: MacOS-videodecoder-build
continue-on-error: false

- name: "load cached objects (godot-tts)"
uses: actions/cache@v3
id: "cache_tts"
with:
path: cached_builds/tts/${{ matrix.bits }}
key: MacOS-${{ matrix.bits }}-tts-build
continue-on-error: true

- name: "Checkout Custom Godot"
if: steps.cache_template.outputs.cache-hit != 'true'
uses: actions/checkout@v3
Expand All @@ -117,6 +125,25 @@ jobs:
ref: retrohub_patches
path: "godot"

- name: "Download godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
uses: robinraju/release-downloader@v1.7
with:
repository: retrohub-org/godot-tts
tag: v1.0.0
fileName: godot-tts.zip
tarBall: false
zipBall: false
out-file-path: ""

- name: "Cache godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
run: |
unzip godot-tts.zip -d $RUNNER_TEMP
mkdir -p -v cached_builds/tts
mv -v $RUNNER_TEMP/godot-tts/target/release/*.dylib cached_builds/tts


- name: "[Godot] Dependencies"
if: steps.cache_template.outputs.cache-hit != 'true'
working-directory: ./godot
Expand Down Expand Up @@ -188,6 +215,12 @@ jobs:
- name: "Package default themes"
uses: ./retrohub/.github/actions/get-default-themes

- name: "Package godot-tts"
run: |
mkdir -p -v retrohub/addons/godot-tts/target/release
cp -r -v cached_builds/tts/* retrohub/addons/godot-tts/target/release


- name: "Exporting RetroHub"
working-directory: retrohub
run: |
Expand Down
43 changes: 38 additions & 5 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,52 @@ jobs:
bin: godot.windows.opt.32.exe
template: godot_32.exe
videodecoder: win32
godot-tts: target/release/32
- name: 64 Bits
bits: 64
bin: godot.windows.opt.64.exe
template: godot_64.exe
videodecoder: win64
godot-tts: target/release

steps:
- name: "Checkout RetroHub"
uses: actions/checkout@v3
with:
path: "retrohub"

- name : "Load cached objects (Godot editor)"
- name: "Load cached objects (Godot editor)"
uses: actions/cache@v3
id: "cache_editor"
with:
path: cached_builds/editor/godot
key: editor-build
continue-on-error: true
- name : "Load cached objects (Godot templates)"

- name: "Load cached objects (Godot templates)"
uses: actions/cache@v3
id: "cache_template"
with:
path: cached_builds/template/godot_${{ matrix.bits }}.exe
key: Windows-${{ matrix.bits }}-template-build
continue-on-error: true
- name : "Load cached objects (Videodecoder)"

- name: "Load cached objects (Videodecoder)"
uses: actions/cache@v3
id: "cache_videodecoder"
with:
path: cached_builds/videodecoder/${{ matrix.videodecoder }}
key: Windows-${{ matrix.bits }}-videodecoder-build
continue-on-error: true

- name: "load cached objects (godot-tts)"
uses: actions/cache@v3
id: "cache_tts"
with:
path: cached_builds/tts/${{ matrix.bits }}
key: Windows-${{ matrix.bits }}-tts-build
continue-on-error: true

- name: "Checkout Custom Godot"
if: steps.cache_template.outputs.cache-hit != 'true'
uses: actions/checkout@v3
Expand All @@ -69,6 +79,24 @@ jobs:
submodules: recursive
path: "videodecoder"

- name: "Download godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
uses: robinraju/release-downloader@v1.7
with:
repository: retrohub-org/godot-tts
tag: v1.0.0
fileName: godot-tts.zip
tarBall: false
zipBall: false
out-file-path: ""

- name: "Cache godot-tts"
if: steps.cache_tts.outputs.cache-hit != 'true'
run: |
unzip godot-tts.zip -d $RUNNER_TEMP
mkdir -p -v cached_builds/tts/${{ matrix.bits }}
mv -v $RUNNER_TEMP/godot-tts/${{ matrix.godot-tts }}/*.dll cached_builds/tts/${{ matrix.bits }}

- name: "[Videodecoder] Compilation"
if: steps.cache_videodecoder.outputs.cache-hit != 'true'
working-directory: ./videodecoder
Expand Down Expand Up @@ -156,6 +184,11 @@ jobs:
echo "export/windows/rcedit = \"$(pwd)/rcedit-x64.exe\"" >> ~/.config/godot/editor_settings-3.tres
tail -n2 ~/.config/godot/editor_settings-3.tres

- name: "Package godot-tts"
run: |
mkdir -p -v retrohub/addons/godot-tts/${{ matrix.godot-tts }}
cp -r -v cached_builds/tts/${{ matrix.bits }}/* retrohub/addons/godot-tts/${{ matrix.godot-tts }}

- name: "Exporting RetroHub"
working-directory: retrohub
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ godotOld
# Ignore pre-built FFMPEG binaries
addons/godot-videodecoder/**

# Ignore pre-built godot-tts, it is bundled on release
addons/godot-tts/target/

# Ignore specific addons
addons/wakatime

Expand Down
2 changes: 2 additions & 0 deletions .godot-accessibility-editor-settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[global]
editor_accessibility_enabled = false
Loading