name: "Get Emscripten SDK"
inputs:
  version:
    description: ""
    required: false
    default: "4.0.9"


runs:
  using: "composite"
  steps:
    - name: install emsdk
      shell: bash
      run: |
        git clone https://github.com/emscripten-core/emsdk.git ./emsdk/
        cd emsdk
        git checkout tags/${{ inputs.version }}
        ./emsdk install ${{ inputs.version }}
        ./emsdk activate ${{ inputs.version }}
