Skip to content

Commit

Permalink
Install Conan with pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Jun 3, 2024
1 parent 3300f83 commit 2a305cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .github/actions/install-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ runs:
uses: ./.github/actions/install-python
with:
key: ${{ inputs.cache-key-python }}
- name: install Conan
shell: bash
run: |
venv=${HOME}/.venvs/conan
python -m venv ${venv}
${venv}/bin/pip install --upgrade pip
${venv}/bin/pip install 'conan<2'
mkdir -p ${HOME}/.local/bin
ln ${venv}/bin/conan ${HOME}/.local/bin/conan
echo ${HOME}/.local/bin >> ${GITHUB_PATH}
- name: install Ninja on Linux
if: startsWith(matrix.platform, 'ubuntu')
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/install-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ runs:
run: |
pip install --upgrade pip
pip install poetry cupcake
- name: install Conan
shell: bash
run: |
pipx install 'conan<2'
- name: configure Conan
shell: bash
run: |
Expand Down
10 changes: 0 additions & 10 deletions .github/actions/install-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ runs:
uses: ./.github/actions/install-python
with:
key: ${{ inputs.cache-key-python }}
- name: install Conan
shell: bash
run: |
venv=${HOME}/.venvs/conan
python -m venv ${venv}
${venv}/Scripts/pip install --upgrade pip
${venv}/Scripts/pip install 'conan<2'
mkdir -p ${HOME}/.local/bin
ln ${venv}/Scripts/conan ${HOME}/.local/bin/conan
echo ${HOME}/.local/bin >> ${GITHUB_PATH}
- name: check environment
shell: pwsh
run: |
Expand Down

0 comments on commit 2a305cd

Please sign in to comment.