-
-
Notifications
You must be signed in to change notification settings - Fork 331
40 lines (36 loc) · 1.1 KB
/
conan.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
name: Conan Package
on: [push, pull_request]
jobs:
ConanWindows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [windows-2019]
steps:
- name: Clone Repository
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Get Conan
uses: turtlebrowser/get-conan@main
with:
version: 1.50.0
- name: Set Version
id: version
run: if ("tag" -eq $Env:GITHUB_REF_TYPE) { echo "::set-output name=version::$Env:GITHUB_REF_NAME" } else { echo "::set-output name=version::$Env:GITHUB_SHA" }
- name: Check Version
run: echo ${{ steps.version.outputs.version }}
- name: Set Path
run: |
echo %GITHUB_WORKSPACE%\tools>>%GITHUB_PATH%
echo %GITHUB_WORKSPACE%\installed64\lib>>%GITHUB_PATH%
echo %GITHUB_WORKSPACE%\installed32\lib>>%GITHUB_PATH%
shell: cmd
- name: Run Conan packaging
run: |
conan create . demo/testing
shell: cmd
env:
CONAN_CMAKE_SYSTEM_VERSION: 10.0.19041.0