Skip to content

Commit 398dde2

Browse files
committed
Make CI more reliable
1 parent 75baf7d commit 398dde2

File tree

9 files changed

+222
-359
lines changed

9 files changed

+222
-359
lines changed

.github/actions/setup-conda-build/action.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/actions/setup-numba-dpex/action.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
name: Setup numba-dpex
22
description: 'Setup conda environment, build numba-dpex and setup devices'
33
inputs:
4-
environment:
4+
environment-file:
55
description: Environment file
66
required: true
7-
default: environment/dev.yml
7+
environment-name:
8+
description: Environment name
9+
default: work-env
10+
python-version:
11+
description: Python version
12+
default: 3.9
813
runs:
914
using: "composite"
1015
steps:
11-
- name: Setup conda
12-
run: echo $CONDA/bin >> $GITHUB_PATH
13-
shell: bash
14-
15-
- name: Setup conda environment
16-
run: conda env update -n base -f ${{ inputs.environment }} --prune
17-
shell: bash
16+
# NOTE: works faster without cache
17+
- uses: conda-incubator/setup-miniconda@v2
18+
with:
19+
python-version: ${{ inputs.python-version }}
20+
miniforge-variant: Mambaforge
21+
miniforge-version: latest
22+
activate-environment: "${{ inputs.environment-name }}"
23+
channel-priority: "disabled"
24+
environment-file: "${{ inputs.environment-file }}"
1825

1926
- name: Test conda environment
27+
shell: bash -l {0}
2028
run: conda list
21-
shell: bash
2229

2330
- name: Build numba-dpex
31+
shell: bash -l {0}
2432
run: |
2533
export PATH=$CONDA/bin-llvm:$PATH
2634
python setup.py develop
27-
shell: bash
2835
2936
- name: Setup OpenCL CPU device
37+
shell: bash -l {0}
3038
run: echo "OCL_ICD_FILENAMES=libintelocl.so" >> $GITHUB_ENV
31-
shell: bash

0 commit comments

Comments
 (0)