File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 42
42
path : ${{ env.ONEAPI_ROOT }}
43
43
key : ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.version }}-${{ steps.get-date.outputs.date }}
44
44
45
- # used to install lfortran on mac
46
- - uses : mamba-org/setup-micromamba@v1
45
+ # Use micromamba for lfortran install on mac. Check if micromamba already
46
+ # exists, only install it if needed. If we install it, clean it up after.
47
+ - name : Check for micromamba
48
+ id : check-umamba
47
49
if : runner.os == 'macOS' && contains(inputs.compiler, 'lfortran')
50
+ shell : bash
51
+ run : |
52
+ if [ "$(command -v micromamba)" ]; then
53
+ echo "install=false" >> $GITHUB_OUTPUT
54
+ else
55
+ echo "install=true" >> $GITHUB_OUTPUT
56
+ fi
57
+ - uses : mamba-org/setup-micromamba@v1
58
+ if : runner.os == 'macOS' && contains(inputs.compiler, 'lfortran') && steps.check-umamba.outputs.install == 'true'
48
59
with :
49
60
init-shell : bash
50
61
post-cleanup : ' all'
You can’t perform that action at this time.
0 commit comments