Update github actions workflow

- Uses matrix so that build steps don't need to be defined multiple
  times.
- Caches godot-cpp bindings, so they only need to be built when the
  submodule version changes.
- Uploads build artifacts for linux 32/64-bit, windows 64-bit and macOS
  64-bit.
This commit is contained in:
Leroy Hopson 2020-11-20 21:34:49 +07:00 committed by Leroy Hopson
parent e850bc952f
commit b2dc46636c
4 changed files with 75 additions and 65 deletions

View file

@ -69,11 +69,6 @@ Help(opts.GenerateHelpText(env))
# Add PATH to environment so scons can find commands such as g++, etc.
env.AppendENVPath('PATH', os.getenv('PATH'))
# Generate godot-cpp bindings.
# Options such as platform, target, etc. will be forwarded to the godot-cpp SConscript.
ARGUMENTS['generate_bindings'] = True
SConscript('external/godot-cpp/SConstruct')
# Compile for Linux.
if env['platform'] == 'linux':