action.yml 840 B

12345678910111213141516171819202122232425
  1. name: 'Windows - Setup CURL'
  2. description: 'Composite action, to be reused in other workflow'
  3. inputs:
  4. curl_version:
  5. description: 'CURL version'
  6. required: false
  7. default: '8.6.0_6'
  8. outputs:
  9. curl_path:
  10. description: "Path to the downloaded libcurl"
  11. value: ${{ steps.get_libcurl.outputs.curl_path }}
  12. runs:
  13. using: "composite"
  14. steps:
  15. - name: libCURL
  16. id: get_libcurl
  17. shell: powershell
  18. env:
  19. CURL_VERSION: ${{ inputs.curl_version }}
  20. run: |
  21. curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64-mingw.zip"
  22. mkdir $env:RUNNER_TEMP/libcurl
  23. tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl
  24. echo "curl_path=$env:RUNNER_TEMP/libcurl" >> $env:GITHUB_OUTPUT