Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 019346a

Browse files
Enable creating virtualenv on macOS
1 parent aeb2721 commit 019346a

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

action.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: 'TurtleBrowser'
44

55
inputs:
66
version:
7-
description: "Wanted conan version"
7+
description: "Wanted Conan version"
88
required: false
99
default: ''
1010

@@ -16,18 +16,25 @@ outputs:
1616
runs:
1717
using: "composite"
1818
steps:
19-
- name: Install setup tools
20-
run: pip3 install wheel setuptools
19+
- name: Create virtualenv on macOS
20+
if: ${{ runner.os == 'macOS' }}
21+
run: |
22+
python3 -m venv .
23+
source ./bin/activate
24+
shell: bash
25+
26+
- name: Install Python setuptools
27+
run: python3 -m pip install wheel setuptools
2128
shell: bash
2229

23-
- name: Install conan latest
30+
- name: Install Conan latest
2431
if: ${{ inputs.version == '' }}
25-
run: pip3 install conan --upgrade
32+
run: python3 -m pip install conan --upgrade
2633
shell: bash
2734

28-
- name: Install conan version ${{ inputs.version }}
35+
- name: Install Conan version ${{ inputs.version }}
2936
if: ${{ inputs.version != '' }}
30-
run: pip3 install conan==${{ inputs.version }} --upgrade
37+
run: python3 -m pip install conan==${{ inputs.version }} --upgrade
3138
shell: bash
3239

3340
- name: Fix path on Linux

0 commit comments

Comments
 (0)