diff --git a/action.yml b/action.yml index 2d858a0..3029f5a 100644 --- a/action.yml +++ b/action.yml @@ -38,6 +38,11 @@ inputs: default: '' required: false + compiler: + description: Tell cmake to use this compiler. + default: '' # Let cmake decide. + required: false + runs: using: composite steps: @@ -122,17 +127,17 @@ runs: run: echo "${{ runner.arch }}" - name: Configure bloaty (arm64) - if: steps.cache.outputs.cache-hit != 'true' && contains(fromJSON('["ARM64", "ARM"]'), runner.arch) + if: steps.cache.outputs.cache-hit != 'true' && inputs.compiler != '' shell: pwsh run: | cmake -B ${{ inputs.bloaty-checkout-dir }}/.build ` -S ${{ inputs.bloaty-checkout-dir }} ` -G Ninja ` - -D CMAKE_CXX_COMPILER="cl" ` - -D CMAKE_C_COMPILER="cl" + -D CMAKE_CXX_COMPILER="${{ inputs.compiler }}" ` + -D CMAKE_C_COMPILER="${{ inputs.compiler }}" - name: Configure bloaty (x64) - if: steps.cache.outputs.cache-hit != 'true' && runner.arch != 'ARM64' + if: steps.cache.outputs.cache-hit != 'true' && inputs.compiler == '' shell: pwsh run: | cmake -B ${{ inputs.bloaty-checkout-dir }}/.build `