Skip to content

Commit

Permalink
Install Conan in a virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Jun 1, 2024
1 parent a0ebc63 commit 77aa961
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/actions/install-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,25 @@ runs:
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ inputs.key }}
# TODO: It seems like we did not implement the cache correctly.
- name: remove node-semver
- name: install Conan
shell: bash
run: |
pip uninstall node-semver
venv=${HOME}/.venvs/conan
python -m venv ${venv}
${venv}/bin/pip install --upgrade pip
${venv}/bin/pip install 'conan<2'
ln ${venv}/bin/conan ${HOME}/.local/bin/conan
echo ${HOME}/.local/bin >> ${GITHUB_PATH}
- name: check installation
shell: bash
run: |
type conan
conan --version
- name: install packages
shell: bash
run: |
pip install --upgrade pip
pip install wheel 'conan<2' poetry cupcake
pip install poetry cupcake
- name: configure Conan
shell: bash
run: |
Expand Down

0 comments on commit 77aa961

Please sign in to comment.