action.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Build Godot
  2. description: Build Godot with the provided options.
  3. inputs:
  4. target:
  5. description: The scons target (debug/release_debug/release).
  6. default: "debug"
  7. tools:
  8. description: If tools are to be built.
  9. default: false
  10. tests:
  11. description: If tests are to be built.
  12. default: false
  13. platform:
  14. description: The Godot platform to build.
  15. required: false
  16. sconsflags:
  17. default: ""
  18. scons-cache:
  19. description: The scons cache path.
  20. default: "${{ github.workspace }}/.scons-cache/"
  21. scons-cache-limit:
  22. description: The scons cache size limit.
  23. # actions/cache has 10 GiB limit, and GitHub runners have a 14 GiB disk.
  24. # Limit to 7 GiB to avoid having the extracted cache fill the disk.
  25. default: 7168
  26. runs:
  27. using: "composite"
  28. steps:
  29. - name: Scons Build
  30. shell: sh
  31. env:
  32. SCONSFLAGS: ${{ inputs.sconsflags }}
  33. SCONS_CACHE: ${{ inputs.scons-cache }}
  34. SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
  35. run: |
  36. echo "Building with flags:" ${{ env.SCONSFLAGS }}
  37. scons p=${{ inputs.platform }} target=${{ inputs.target }} tools=${{ inputs.tools }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
  38. ls -l bin/