1
0

action.yml 1019 B

123456789101112131415161718192021222324252627282930
  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. architecture:
  9. description: 'Architecture of the libcurl to download'
  10. required: false
  11. default: 'win64'
  12. outputs:
  13. curl_path:
  14. description: "Path to the downloaded libcurl"
  15. value: ${{ steps.get_libcurl.outputs.curl_path }}
  16. runs:
  17. using: "composite"
  18. steps:
  19. - name: libCURL
  20. id: get_libcurl
  21. shell: powershell
  22. env:
  23. CURL_VERSION: ${{ inputs.curl_version }}
  24. ARCHITECTURE: ${{ inputs.architecture }}
  25. run: |
  26. curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-${env:ARCHITECTURE}-mingw.zip"
  27. mkdir $env:RUNNER_TEMP/libcurl
  28. tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl
  29. echo "curl_path=$env:RUNNER_TEMP/libcurl" >> $env:GITHUB_OUTPUT