Skip to content

Commit

Permalink
Pin conda-build to latest version (24.1.2) (IntelPython#1721)
Browse files Browse the repository at this point in the history
* Pin conda-build to latest version (24.1.2)

* Use conda-index package instead of conda-build
  • Loading branch information
antonwolfy authored Feb 19, 2024
1 parent fb116ad commit a100705
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
PACKAGE_NAME: dpnp
MODULE_NAME: dpnp
CHANNELS: '-c dppy/label/dev -c intel -c conda-forge --override-channels'
CONDA_BUILD_VERSION: '24.1.2'
CONDA_INDEX_VERSION: '0.4.0'
# TODO: to add test_arraymanipulation.py back to the scope once crash on Windows is gone
TEST_SCOPE: >-
test_arraycreation.py
Expand Down Expand Up @@ -102,7 +104,7 @@ jobs:
(echo CONDA_BLD=%CONDA_PREFIX%\conda-bld\win-64\) >> %GITHUB_ENV%
- name: Install conda-build
run: conda install conda-build=3.28.4
run: conda install conda-build=${{ env.CONDA_BUILD_VERSION}}

- name: Cache conda packages
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
Expand Down Expand Up @@ -171,12 +173,12 @@ jobs:
miniconda-version: 'latest'
activate-environment: 'test'

# Needed to be able to run conda index
- name: Install conda-build
run: conda install conda-build=3.28.4
- name: Install conda-index
run: conda install conda-index=${{ env.CONDA_INDEX_VERSION}}

- name: Create conda channel
run: conda index ${{ env.channel-path }}
run: |
python -m conda_index ${{ env.channel-path }}
- name: Test conda channel
run: |
Expand Down Expand Up @@ -287,12 +289,13 @@ jobs:
(echo CONDA_LIB_PATH=%CONDA_PREFIX%\Library\lib\) >> %GITHUB_ENV%
(echo CONDA_LIB_BIN_PATH=%CONDA_PREFIX%\Library\bin\) >> %GITHUB_ENV%
# Needed to be able to run conda index
- name: Install conda-build
run: conda install conda-build=3.28.4
- name: Install conda-index
run: conda install conda-index=${{ env.CONDA_INDEX_VERSION}}

- name: Create conda channel
run: conda index ${{ env.channel-path }}
run: |
@echo on
python -m conda_index ${{ env.channel-path }}
- name: Test conda channel
run: |
Expand Down

0 comments on commit a100705

Please sign in to comment.