Skip to content

Commit

Permalink
use mamba [skip appveyor] [skip azurepipelines] [skip cirrus]
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Oct 26, 2023
1 parent 00bf776 commit a81d68b
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 114 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-conda-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
workflow_dispatch:
push:
branches:
- "micromamba-installer"
- 'master'
- 'releases/**'
- 'testing/**'
Expand All @@ -31,7 +32,7 @@ jobs:
matrix:
include:
- python-version: "3.9.12"
miniconda-version: "py39_4.12.0"
micromamba-version: "1.5.1-0"

defaults:
run:
Expand Down Expand Up @@ -90,7 +91,8 @@ jobs:
pyqt=5.15.* \
pyqtwebengine=5.15.* \
Orange3=$VERSION \
blas=*=openblas
blas=*=openblas \
mamba
conda list -p ./env --export --explicit --md5 > env-spec.txt
cat env-spec.txt
echo "CONDA_SPEC_FILE=env-spec.txt" >> $GITHUB_ENV
Expand All @@ -99,7 +101,7 @@ jobs:
- name: Build installer
env:
PLATTAG: win_amd64
MINICONDA_VERSION: ${{ matrix.miniconda-version }}
MICROMAMBA_VERSION: ${{ matrix.micromamba-version }}
run: |
mkdir dist
export PATH="$(cygpath -u 'C:\Program Files (x86)\NSIS'):$PATH"
Expand All @@ -108,7 +110,7 @@ jobs:
--platform $PLATTAG \
--cache-dir .cache \
--dist-dir dist \
--miniconda-version "$MINICONDA_VERSION" \
--micromamba-version "$MICROMAMBA_VERSION" \
--env-spec "$CONDA_SPEC_FILE" \
--online no
Expand Down Expand Up @@ -159,6 +161,13 @@ jobs:
$PYTHON -m unittest -v Orange.tests Orange.widgets.tests
- name: Test conda
shell: cmd
run: |
C:\test-install\Scripts\conda.bat --help
C:\test-install\Scripts\conda.bat info
C:\test-install\Scripts\activate.bat
echo %CONDA_PREFIX%
package_portable:
name: Package a portable install
Expand Down
Loading

0 comments on commit a81d68b

Please sign in to comment.