Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

strategy:
matrix:
python: ['3.8', '3.9']
python: ['3.8', '3.9', '3.10']
env:
conda-bld: C:\Miniconda\conda-bld\win-64\
steps:
Expand All @@ -73,6 +73,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
conda-build-version: "*"
activate-environment: ""

- name: Cache conda packages
Expand All @@ -86,8 +87,6 @@ jobs:
restore-keys: |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
- name: Install conda-build
run: conda install conda-build
- name: Build conda package
run: conda build --no-test --python ${{ matrix.python }} -c intel -c main --override-channels conda-recipe
- name: Upload artifact
Expand Down Expand Up @@ -177,7 +176,7 @@ jobs:

strategy:
matrix:
python: ['3.8', '3.9']
python: ['3.8', '3.9', '3.10']
experimental: [false]
runner: [windows-latest]
continue-on-error: ${{ matrix.experimental }}
Expand All @@ -194,39 +193,39 @@ jobs:
with:
use-only-tar-bz2: true
auto-update-conda: true
conda-build-version: '*'
miniconda-version: 'latest'
activate-environment: "dpctl_test"
- name: Install conda-build
shell: cmd /C CALL {0}
# Needed to be able to run conda index
run: conda install conda-build
- name: Create conda channel
- name: Create conda channel with the artifact bit
shell: cmd /C CALL {0}
run: |
echo ${{ env.workdir }}
mkdir ${{ env.workdir }}\channel\win-64
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
conda index ${{ env.workdir }}/channel
# Test channel
dir ${{ env.workdir }}\channel\win-64
- name: Index the channel
shell: cmd /C CALL {0}
run: conda index ${{ env.workdir }}\channel

- name: Dump dpctl version info from created channel into ver.json
shell: cmd /C CALL {0}
run: |
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
type ${{ env.workdir }}\ver.json
- name: Output content of produced ver.json
run: Get-Content -Path ${{ env.workdir }}\ver.json
- name: Collect dependencies
shell: cmd /C CALL {0}
run: |
@ECHO ON
if not exist ver.json (
IF NOT EXIST ver.json (
copy /Y ${{ env.workdir }}\ver.json .
)
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
SET "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
SET PACKAGE_VERSION=%%F
)
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
- name: Display lockfile content
shell: cmd /C CALL {0}
run: |
echo "Outputting content of lockfile:"
type lockfile
run: Get-Content -Path .\lockfile
- name: Cache conda packages
uses: actions/cache@v3
env:
Expand All @@ -245,7 +244,9 @@ jobs:
shell: cmd /C CALL {0}
run: |
@ECHO ON
copy /Y ${{ env.workdir }}\ver.json .
IF NOT EXIST ver.json (
copy /Y ${{ env.workdir }}\ver.json .
)
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
SET PACKAGE_VERSION=%%F
Expand Down