Skip to content

Commit

Permalink
Platform-specific virtual environment installation
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Jun 1, 2024
1 parent 349097b commit 2201423
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .github/actions/install-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ 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
20 changes: 0 additions & 20 deletions .github/actions/install-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,6 @@ runs:
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ inputs.key }}
- name: install Conan
shell: bash
run: |
venv=${HOME}/.venvs/conan
python -m venv ${venv}
ls -d ${HOME}/.venvs
ls -l ${HOME}/.venvs
ls -l ${venv}
ls -l ${venv}/bin
${venv}/bin/pip install --upgrade pip
${venv}/bin/pip install 'conan<2'
${venv}/bin/conan --version
mkdir -p ${HOME}/.local/bin
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: |
Expand Down
10 changes: 10 additions & 0 deletions .github/actions/install-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ 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 2201423

Please sign in to comment.