File tree Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Original file line number Diff line number Diff line change 7
7
strategy :
8
8
fail-fast : false
9
9
matrix :
10
- os : [ubuntu-18.04, ubuntu-20.04, macos-10.15 , windows-2019 ]
10
+ os : [ubuntu-latest, macos-latest , windows-latest ]
11
11
12
12
runs-on : ${{ matrix.os }}
13
-
13
+
14
14
steps :
15
15
- name : Checkout
16
16
uses : actions/checkout@v2
21
21
22
22
- name : Did we get Conan?
23
23
run : echo "Conan version was '${{ steps.conan.outputs.version }}'"
24
+
25
+ build_version :
26
+ strategy :
27
+ fail-fast : false
28
+ matrix :
29
+ os : [ubuntu-latest, macos-latest, windows-latest]
30
+
31
+ runs-on : ${{ matrix.os }}
32
+
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v2
36
+ - name : Get Conan
37
+ id : conan
38
+ uses : ./ # Uses an action in the root directory
39
+ with :
40
+ version : 1.50.0
41
+ - name : Did we get Conan?
42
+ run : echo "Conan version was '${{ steps.conan.outputs.version }}'"
Original file line number Diff line number Diff line change 3
3
4
4
Gets the most recent Conan
5
5
6
- ** Works on** : Linux, Windows and MacOS
6
+ ** Works on** : Linux, Windows and MacOS
7
7
8
8
## Inputs
9
9
@@ -17,10 +17,25 @@ The version string from "conan --version"
17
17
18
18
## Example usage
19
19
20
+ To install the latest conan version
21
+
22
+ ~~~~
23
+ - name: Install Conan
24
+ id: conan
25
+ uses: turtlebrowser/get-conan@main
26
+
27
+ - name: Conan version
28
+ run: echo "${{ steps.conan.outputs.version }}"
29
+ ~~~~
30
+
31
+ It is also possible to specify the wanted conan version, by using the with:/version input to the action.
32
+
20
33
~~~~
21
34
- name: Install Conan
22
35
id: conan
23
36
uses: turtlebrowser/get-conan@main
37
+ with:
38
+ version: 1.50.0
24
39
25
40
- name: Conan version
26
41
run: echo "${{ steps.conan.outputs.version }}"
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
+ inputs :
5
+ version :
6
+ description : " Wanted conan version"
7
+ required : false
8
+ default : ' '
4
9
outputs :
5
10
version :
6
11
description : " The version of Conan which was installed"
7
12
value : ${{ steps.output_version.outputs.version }}
8
13
runs :
9
14
using : " composite"
10
15
steps :
11
- - name : Install on Mac/Linux/Windows
12
- run : |
13
- pip3 install wheel setuptools
14
- pip3 install conan --upgrade
16
+ - name : Install setup tools
17
+ run : pip3 install wheel setuptools
18
+ shell : bash
19
+ - name : Install conan latest
20
+ if : ${{ inputs.version == '' }}
21
+ run : pip3 install conan --upgrade
22
+ shell : bash
23
+ - name : Install conan version ${{ inputs.version }}
24
+ if : ${{ inputs.version != '' }}
25
+ run : pip3 install conan==${{ inputs.version }} --upgrade
15
26
shell : bash
16
27
- name : Fix path on Linux
17
28
run : |
26
37
branding :
27
38
icon : " archive"
28
39
color : " green"
40
+
41
+
42
+
43
+
You can’t perform that action at this time.
0 commit comments