This repository was archived by the owner on Jul 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Get Conan'
2
2
description : ' Installs Conan'
3
3
author : ' TurtleBrowser'
4
+
4
5
inputs :
5
6
version :
6
7
description : " Wanted conan version"
7
8
required : false
8
9
default : ' '
10
+
9
11
outputs :
10
12
version :
11
13
description : " The version of Conan which was installed"
12
14
value : ${{ steps.output_version.outputs.version }}
15
+
13
16
runs :
14
17
using : " composite"
15
18
steps :
16
19
- name : Install setup tools
17
20
run : pip3 install wheel setuptools
18
21
shell : bash
22
+
19
23
- name : Install conan latest
20
24
if : ${{ inputs.version == '' }}
21
25
run : pip3 install conan --upgrade
22
26
shell : bash
27
+
23
28
- name : Install conan version ${{ inputs.version }}
24
29
if : ${{ inputs.version != '' }}
25
30
run : pip3 install conan==${{ inputs.version }} --upgrade
26
31
shell : bash
32
+
27
33
- name : Fix path on Linux
34
+ if : ${{ runner.os == 'Linux' }}
28
35
run : |
29
36
echo "/home/runner/.local/bin" >> $GITHUB_PATH
30
37
shell : bash
38
+
31
39
- name : Fill in output variable
32
40
id : output_version
33
41
shell : bash
34
42
run : |
35
43
conan --version
36
44
echo "version=$(conan --version)" >> $GITHUB_OUTPUT
45
+
37
46
branding :
38
47
icon : " archive"
39
48
color : " green"
You can’t perform that action at this time.
0 commit comments