Github Actions does not support matrix variables in `uses`

master
Marc Gilleron 2022-08-27 13:53:55 +01:00
parent fe1d53b2af
commit be115b3402
1 changed files with 6 additions and 3 deletions

View File

@ -24,14 +24,16 @@ jobs:
- name: Editor build - name: Editor build
target: release_debug target: release_debug
tools: yes tools: yes
cache_action: actions/cache@v2 #cache_action: actions/cache@v2
executable_name: godot.windows.opt.tools.x86_64.exe executable_name: godot.windows.opt.tools.x86_64.exe
- name: Release build - name: Release build
target: release target: release
tools: no tools: no
# TODO I don't remember why this one uses a different action? # TODO I don't remember why this one uses a different action?
cache_action: RevoluPowered/cache@v2.1 # Either way, Github Actions does not support matrix variables in `uses` yet.
# See https://github.com/orgs/community/discussions/9049
#cache_action: RevoluPowered/cache@v2.1
executable_name: godot.windows.opt.x86_64.exe executable_name: godot.windows.opt.x86_64.exe
steps: steps:
@ -50,7 +52,8 @@ jobs:
# Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache. # Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache.
- name: Load .scons_cache directory - name: Load .scons_cache directory
id: windows-editor-cache id: windows-editor-cache
uses: ${{matrix.cache_action}} #uses: ${{matrix.cache_action}}
uses: actions/cache@v2
with: with:
path: /.scons_cache/ path: /.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}