-
Notifications
You must be signed in to change notification settings - Fork 8
/
action.yml
39 lines (39 loc) · 1.04 KB
/
action.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
name: 'Get Conan'
description: 'Installs Conan'
author: 'TurtleBrowser'
inputs:
version:
description: "Wanted conan version"
required: false
default: ''
outputs:
version:
description: "The version of Conan which was installed"
value: ${{ steps.output_version.outputs.version }}
runs:
using: "composite"
steps:
- name: Install setup tools
run: pip3 install wheel setuptools
shell: bash
- name: Install conan latest
if: ${{ inputs.version == '' }}
run: pip3 install conan --upgrade
shell: bash
- name: Install conan version ${{ inputs.version }}
if: ${{ inputs.version != '' }}
run: pip3 install conan==${{ inputs.version }} --upgrade
shell: bash
- name: Fix path on Linux
run: |
echo "/home/runner/.local/bin" >> $GITHUB_PATH
shell: bash
- name: Fill in output variable
id: output_version
shell: bash
run: |
conan --version
echo "version=$(conan --version)" >> $GITHUB_OUTPUT
branding:
icon: "archive"
color: "green"