From 32422c0b3d7ab6c35a49425574a1d8701ce8595c Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 13 Oct 2025 03:09:44 +0800 Subject: [PATCH] Install conda-pack before pack command --- .github/workflows/conda-pack-build.yml | 45 ++------------------------ 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/conda-pack-build.yml b/.github/workflows/conda-pack-build.yml index 8e998ce1..bc72490d 100644 --- a/.github/workflows/conda-pack-build.yml +++ b/.github/workflows/conda-pack-build.yml @@ -73,7 +73,6 @@ jobs: channels: conda-forge,robostack-staging,uni-lab,defaults channel-priority: flexible activate-environment: unilab - auto-activate-base: true auto-update-conda: false show-channel-urls: true @@ -82,7 +81,6 @@ jobs: run: | echo Installing unilabos and dependencies to unilab environment... echo Using mamba for faster and more reliable dependency resolution... - mamba install -n base conda-pack -c conda-forge -y mamba install -n unilab uni-lab::unilabos conda-pack -c uni-lab -c robostack-staging -c conda-forge -y - name: Install conda-pack, unilabos and dependencies (Unix) @@ -91,7 +89,6 @@ jobs: run: | echo "Installing unilabos and dependencies to unilab environment..." echo "Using mamba for faster and more reliable dependency resolution..." - mamba install -n base conda-pack -c conda-forge -y mamba install -n unilab uni-lab::unilabos -c uni-lab -c robostack-staging -c conda-forge -y - name: Get latest ros-humble-unilabos-msgs version (Windows) @@ -210,6 +207,7 @@ jobs: if: steps.should_build.outputs.should_build == 'true' && matrix.platform == 'win-64' run: | echo Packing unilab environment with conda-pack... + mamba install conda-pack -c conda-forge -y conda pack -n unilab -o unilab-env-${{ matrix.platform }}.tar.gz --ignore-missing-files echo Pack file created: dir unilab-env-${{ matrix.platform }}.tar.gz @@ -219,6 +217,7 @@ jobs: shell: bash run: | echo "Packing unilab environment with conda-pack..." + mamba install conda-pack -c conda-forge -y conda pack -n unilab -o unilab-env-${{ matrix.platform }}.tar.gz --ignore-missing-files echo "Pack file created:" ls -lh unilab-env-${{ matrix.platform }}.tar.gz @@ -285,46 +284,6 @@ jobs: ls -lh dist-package/ echo "" - - name: Finalize Windows distribution package - if: steps.should_build.outputs.should_build == 'true' && matrix.platform == 'win-64' - run: | - echo ========================================== - echo Windows distribution package ready - echo. - echo Package will be uploaded as artifact - echo GitHub Actions will automatically create ZIP - echo. - echo Contents: - dir /b dist-package - echo. - echo Users will download a ZIP containing: - echo - install_unilab.bat - echo - unilab-env-${{ matrix.platform }}.tar.gz - echo - verify_installation.py - echo - README.txt - echo ========================================== - - - name: Create Unix/Linux TAR.GZ archive - if: steps.should_build.outputs.should_build == 'true' && matrix.platform != 'win-64' - shell: bash - run: | - echo "==========================================" - echo "Creating Unix/Linux TAR.GZ archive..." - echo "Archive: unilab-pack-${{ matrix.platform }}.tar.gz" - echo "Contents: install_unilab.sh + unilab-env-${{ matrix.platform }}.tar.gz + extras" - tar -czf unilab-pack-${{ matrix.platform }}.tar.gz -C dist-package . - echo "==========================================" - - echo "" - echo "Final package created:" - ls -lh unilab-pack-* - echo "" - echo "Users can now:" - echo " 1. Download unilab-pack-${{ matrix.platform }}.tar.gz" - echo " 2. Extract it: tar -xzf unilab-pack-${{ matrix.platform }}.tar.gz" - echo " 3. Run: bash install_unilab.sh" - echo "" - - name: Upload distribution package if: steps.should_build.outputs.should_build == 'true' uses: actions/upload-artifact@v4