Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-spline-conv
Commits
2f6a9947
Commit
2f6a9947
authored
Jun 26, 2021
by
rusty1s
Browse files
[skip ci] conda
parent
0d33971f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
63 deletions
+42
-63
.github/workflows/building-conda.yml
.github/workflows/building-conda.yml
+42
-56
conda/disk.ps1
conda/disk.ps1
+0
-7
No files found.
.github/workflows/building-conda.yml
View file @
2f6a9947
...
...
@@ -31,70 +31,56 @@ jobs:
steps
:
-
uses
:
actions/checkout@v2
-
name
:
HEHE
run
:
|
ls -lah /c/Program\ Files
shell
:
bash
-
name
:
DISK?
run
:
|
.\conda\disk.ps1
-
name
:
Size
run
:
|
Get-PSDrive
-
name
:
Free up disk space
if
:
${{ runner.os == 'Windows' && matrix.cuda-version == 'cu111' }}
run
:
|
Remove-Item "$Env:Programfiles\
Unity Hub
" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Remove-Item "$Env:Programfiles\
Azure Cosmos DB Emulator
" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Write-Host $err
Remove-Item "$Env:Programfiles\Microsoft Service Fabric" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Remove-Item "$Env:Programfiles\Google" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Write-Host $err
Remove-Item "$Env:Programfiles\MongoDB" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Write-Host $err
Remove-Item "$Env:Programfiles\PostgreSQL" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err
Write-Host $err
-
name
:
Size
run
:
|
Get-PSDrive
# - name: Set up Conda for Python ${{ matrix.python-version }}
# uses: conda-incubator/setup-miniconda@v2
# with:
# python-version: ${{ matrix.python-version }}
-
name
:
Set up Conda for Python ${{ matrix.python-version }}
uses
:
conda-incubator/setup-miniconda@v2
with
:
python-version
:
${{ matrix.python-version }}
#
- name: Install Conda packages
#
run: |
#
conda install conda-build conda-verify --yes
#
shell:
#
bash -l {0}
-
name
:
Install Conda packages
run
:
|
conda install conda-build conda-verify --yes
shell
:
bash -l {0}
#
- name: Install CUDA ${{ matrix.cuda-version }}
#
if: ${{ matrix.cuda-version != 'cpu' }}
#
run: |
#
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
#
shell:
#
bash
-
name
:
Install CUDA ${{ matrix.cuda-version }}
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
shell
:
bash
#
- name: Build Conda package for CPU
#
if: ${{ matrix.cuda-version == 'cpu' }}
#
run: |
#
FORCE_CUDA=0 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
#
shell:
#
bash -l {0}
-
name
:
Build Conda package for CPU
if
:
${{ matrix.cuda-version == 'cpu' }}
run
:
|
FORCE_CUDA=0 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
bash -l {0}
#
- name: Build Conda package for GPU
#
if: ${{ matrix.cuda-version != 'cpu' }}
#
run: |
#
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
#
FORCE_CUDA=1 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
#
shell:
#
bash -l {0}
-
name
:
Build Conda package for GPU
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
FORCE_CUDA=1 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
bash -l {0}
#
- name: Publish Conda package
#
run: |
#
conda install anaconda-client --yes
#
anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2
#
env:
#
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
#
shell:
#
bash -l {0}
-
name
:
Publish Conda package
run
:
|
conda install anaconda-client --yes
anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2
env
:
ANACONDA_API_TOKEN
:
${{ secrets.ANACONDA_TOKEN }}
shell
:
bash -l {0}
conda/disk.ps1
deleted
100644 → 0
View file @
0d33971f
$path
=
"
$
Env
:
Programfiles
"
$colItems
=
Get-ChildItem
$path
|
Where-Object
{
$_
.
PSIsContainer
-eq
$true
}
|
Sort-Object
foreach
(
$i
in
$colItems
)
{
$subFolderItems
=
Get-ChildItem
$i
.
FullName
-recurse
-force
|
Where-Object
{
$_
.
PSIsContainer
-eq
$false
}
|
Measure-Object
-property
Length
-sum
|
Select-Object
Sum
$i
.
FullName
+
" -- "
+
"{0:N2}"
-f
(
$subFolderItems
.
sum
/
1MB
)
+
" MB"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment