Skip to content

Commit

Permalink
setup-miniconda supports paths as environment names
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Jul 16, 2024
1 parent 4cf6d97 commit f754b20
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,35 @@ jobs:
# reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
# shell: powershell

# Set CONDA_PREFIX on Windows to a shorter path
- name: Set CONDA_PREFIX (Windows)
# Make conda prefix directory (Windows)
- name: Make conda prefix directory (Windows)
if: matrix.os == 'windows-2022'
shell: powershell
run: |
New-Item -ItemType Directory -Force -Path C:\c
conda config --set envs_dirs "C:\c\envs"
env:
CONDA_PREFIX: C:\c\tf
# Setup Miniconda
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
python-version: "3.10"
environment-file: environment.tensorflow.yml
activate-environment: tf
env:
CONDA_PREFIX: C:\c\tf
activate-environment: C:\c\tf

- name: Print environment info
shell: bash -l {0}
run: |
which python
conda info
env:
CONDA_PREFIX: C:\c\tf
conda list
# Build conda package (Windows)
- name: Build conda package (Windows)
if: matrix.os == 'windows-2022'
shell: powershell
run: |
conda build --debug .conda.tensorflow --output-folder C:\c\build.tensorflow -c conda-forge
env:
CONDA_PREFIX: C:\c\tf
# Build conda package (Ubuntu)
- name: Build conda package (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
Expand Down

0 comments on commit f754b20

Please sign in to comment.