Correct libcurl installation in Windows(8). #2243
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: [ master-dev ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.repository_owner == 'grame-cncm' || github.event_name == 'pull_request' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Get latest CMake and Ninja | |
uses: lukka/get-cmake@latest | |
- name: Install libcurl | |
run: | | |
choco install curl --version=8.11.1 --installargs 'ADD_CMAKE_PATH=1' | |
choco install openssl | |
curl --version | |
- name: Set environment variables for libcurl | |
run: | | |
echo "CURL_INCLUDE_DIR=C:/Program Files/libcurl/include" >> $GITHUB_ENV | |
echo "CURL_LIBRARY=C:/Program Files/libcurl/lib/libcurl.lib" >> $GITHUB_ENV | |
- name: Fix OpenSSL configuration | |
run: | | |
echo "C:\Program Files\OpenSSL\bin" >> $GITHUB_PATH | |
echo "OPENSSL_CONF=C:/Program Files/OpenSSL/bin/openssl.cfg" >> $GITHUB_ENV | |
- name: Build Faust with CMake | |
run: | | |
make -C build cmake BACKENDS=regular.cmake TARGETS=win-ci.cmake | |
make -C build | |