-
Notifications
You must be signed in to change notification settings - Fork 330
43 lines (35 loc) · 1.37 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 Development Package
run: |
curl -LO https://curl.se/windows/dl-8.11.1_3/curl-8.11.1_3-win64-mingw.zip
mkdir libcurl
tar -xf curl-8.11.1_3-win64-mingw.zip -C libcurl --strip-components=1
echo "CURL_INCLUDE_DIR=${{ github.workspace }}/libcurl/include" >> $GITHUB_ENV
echo "CURL_LIBRARY=${{ github.workspace }}/libcurl/lib/libcurl.a" >> $GITHUB_ENV
echo "${{ github.workspace }}/libcurl/bin" >> $GITHUB_PATH
curl --version
echo "::notice title=CURL Paths::"
echo "<CURL_INCLUDE_DIR>${{ github.workspace }}/libcurl/include</CURL_INCLUDE_DIR>"
echo "<CURL_LIBRARY>${{ github.workspace }}/libcurl/lib/libcurl.a</CURL_LIBRARY>"
- name: Build Faust with CMake
run: |
make -C build cmake BACKENDS=regular.cmake TARGETS=win-ci.cmake
make -C build