-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup-miniconda supports paths as environment names
- Loading branch information
Showing
1 changed file
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|