Skip to content

Commit

Permalink
Update generate-conda-packages.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Aug 19, 2024
1 parent 234911c commit 82aa8e6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/generate-conda-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,18 @@ jobs:
sed -i -e 's/set(INSTALLER_VERSION "")/set(INSTALLER_VERSION 1234.0)/g' ./packaging/windows/CMakeLists.txt
sed -i -e 's/set(CONDA_ROBOTOLOGY_SUPERBUILD_VERSION "")/set(CONDA_ROBOTOLOGY_SUPERBUILD_VERSION 1234.0)/g' ./conda/cmake/CondaGenerationOptions.cmake
- name: Set CONDA_BLD_PATH on Windows to avoid long path issues
- name: Set CONDA_BLD_PATH on Windows to avoid long path issues [Windows]
if: contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
echo "CONDA_BLD_PATH=C:\bld\" >> $GITHUB_ENV
echo "CONDA_BLD_PATH=C:\\bld" >> $GITHUB_ENV
- name: Set CONDA_BLD_PATH on non-Windows for consistency [non Windows]
if: !contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
echo "CONDA_BLD_PATH=${CONDA_PREFIX}/conda-bld" >> $GITHUB_ENV
- name: Build conda packages
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -217,7 +223,7 @@ jobs:
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
cd ${CONDA_PREFIX}/conda-bld/${{ matrix.conda_platform}}/
cd ${CONDA_BLD_PATH}/${{ matrix.conda_platform}}/
ls *.tar.bz2
anaconda upload --skip-existing *.tar.bz2
Expand All @@ -229,7 +235,7 @@ jobs:
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
cd ${CONDA_PREFIX}/conda-bld/noarch/
cd ${CONDA_BLD_PATH}/noarch/
ls *.tar.bz2
anaconda upload --skip-existing *.tar.bz2
Expand Down

0 comments on commit 82aa8e6

Please sign in to comment.