Skip to content

Commit 996cf41

Browse files
authored
Refactor installer creation in build workflow
Removed the creation of a standalone micromamba environment and adjusted the installer command accordingly.
1 parent 48b785b commit 996cf41

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ jobs:
4242
environment-file: scripts/environment.yml
4343
- name: Create installer
4444
run: |
45-
CONDA_SUBDIR=${{ matrix.target_arch }} conda create --name constructor-${{ matrix.target_arch }} micromamba
46-
CONDA_STANDALONE_PATH="$(conda info --envs | grep constructor-${{ matrix.target_arch }} | sed -E 's@([^ ]+ +)@@g')/bin/micromamba"
4745
if [ "${{ matrix.target_arch }}" = osx-64 ]; then
4846
export CONDA_OVERRIDE_OSX=11.0
4947
elif [ "${{ matrix.target_arch }}" = linux-64 ]; then
5048
export CONDA_OVERRIDE_GLIBC=2.17
5149
fi
52-
CONDA_SUBDIR=${{ matrix.target_arch }} constructor . --platform="${{ matrix.target_arch }}" --conda-exe="${CONDA_STANDALONE_PATH}"
50+
CONDA_SUBDIR=${{ matrix.target_arch }} constructor . --platform="${{ matrix.target_arch }}"
5351
- name: Upload installer
5452
uses: actions/upload-artifact@v4
5553
with:

0 commit comments

Comments
 (0)