action.yml 979 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build godot-cpp
  2. description: Build godot-cpp with the provided options.
  3. env:
  4. GODOT_CPP_BRANCH: 4.3
  5. inputs:
  6. bin:
  7. description: Path to the Godot binary.
  8. required: true
  9. type: string
  10. scons-flags:
  11. description: Additional SCons flags.
  12. type: string
  13. scons-cache:
  14. description: The SCons cache path.
  15. default: ${{ github.workspace }}/.scons_cache/
  16. type: string
  17. runs:
  18. using: composite
  19. steps:
  20. - name: Checkout
  21. uses: actions/checkout@v4
  22. with:
  23. submodules: recursive
  24. repository: godotengine/godot-cpp
  25. ref: ${{ env.GODOT_CPP_BRANCH }}
  26. path: godot-cpp
  27. - name: Extract API
  28. shell: sh
  29. run: ${{ inputs.bin }} --headless --dump-gdextension-interface --dump-extension-api
  30. - name: SCons Build
  31. shell: sh
  32. env:
  33. SCONS_CACHE: ${{ inputs.scons-cache }}
  34. run: scons --directory=./godot-cpp/test "gdextension_dir=${{ github.workspace }}" ${{ inputs.scons-flags }}