@@ -15,24 +15,12 @@ jobs:
15
15
- uses : actions/checkout@v4
16
16
- name : Install Conan
17
17
uses : turtlebrowser/get-conan@main
18
- - name : Cache conan packages
19
- id : cache-conan
20
- uses : actions/cache@v3
21
- env :
22
- cache-name : cache-conan-packages
23
- with :
24
- path : ~/.conan2
25
- key : ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
26
- restore-keys : |
27
- ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-
28
- ${{ runner.os }}-${{ matrix.build_type }}-
29
- ${{ runner.os }}-
30
18
- name : Configure Conan
31
19
run : |
32
- conan profile detect -f
20
+ conan profile detect
33
21
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
34
22
- name : Install dependencies
35
- run : conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} --lockfile-out ~/.conan2/conan.lock .
23
+ run : conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} .
36
24
- name : Generate build system
37
25
run : cmake --preset conan-$(echo ${{ matrix.build_type }} | tr '[:upper:]' '[:lower:]') -DPROXYFMU_BUILD_EXAMPLES=ON -DPROXYFMU_BUILD_TESTS=ON
38
26
- name : Build
46
34
with :
47
35
name : proxyfmu
48
36
path : build/bin/proxyfmu*
49
- - name : Save cache
50
- id : cache-conan-save
51
- uses : actions/cache/save@v3
52
- with :
53
- path : ~/.conan2
54
- key : ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
55
37
56
38
windows :
57
39
name : Windows
@@ -65,24 +47,12 @@ jobs:
65
47
- uses : actions/checkout@v4
66
48
- name : Install Conan
67
49
uses : turtlebrowser/get-conan@main
68
- - name : Cache conan packages
69
- id : cache-conan
70
- uses : actions/cache@v3
71
- env :
72
- cache-name : cache-conan-packages
73
- with :
74
- path : ~/.conan2
75
- key : ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
76
- restore-keys : |
77
- ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-
78
- ${{ runner.os }}-${{ matrix.build_type }}-
79
- ${{ runner.os }}-
80
50
- name : Configure Conan
81
51
run : |
82
- conan profile detect -f
52
+ conan profile detect
83
53
conan remote add osp https://osp.jfrog.io/artifactory/api/conan/conan-local --force
84
54
- name : Install dependencies
85
- run : conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} --lockfile-out ~/.conan2/conan.lock .
55
+ run : conan install --build=missing --output-folder=build -s build_type=${{ matrix.build_type }} .
86
56
- name : Generate build system
87
57
run : cmake --preset conan-default -DPROXYFMU_BUILD_EXAMPLES=ON -DPROXYFMU_BUILD_TESTS=ON
88
58
- name : Build
96
66
with :
97
67
name : proxyfmu
98
68
path : build/bin/proxyfmu*
99
- - name : Save cache
100
- id : cache-conan-save
101
- uses : actions/cache/save@v3
102
- with :
103
- path : ~/.conan2
104
- key : ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
0 commit comments