Skip to content

Commit 674d21f

Browse files
committed
use setup-micromamba on mac
1 parent 920cd47 commit 674d21f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ runs:
4242
path: ${{ env.ONEAPI_ROOT }}
4343
key: ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.version }}-${{ steps.get-date.outputs.date }}
4444

45+
- uses: mamba-org/setup-micromamba@v1
46+
if: runner.os == 'macOS' && contains(inputs.compiler, 'lfortran')
47+
with:
48+
init-shell: >-
49+
bash
50+
powershell
51+
cmd.exe
52+
post-cleanup: 'all'
53+
4554
# Set up the selected toolchain or compiler
4655
- name: Setup toolchain
4756
id: setup

setup-fortran.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ install_environment_modules_apt() {
2525
echo "Environment modules set up completed."
2626
}
2727

28-
install_micromamba_brew() {
29-
brew install micromamba
30-
micromamba shell init
31-
}
32-
3328
install_gcc_brew()
3429
{
3530
# check if gcc preinstalled via brew
@@ -618,7 +613,6 @@ install_lfortran_w()
618613
install_lfortran_m()
619614
{
620615
local version=$1
621-
install_micromamba_brew
622616
export CC="gcc"
623617
export CXX="g++"
624618
export CONDA_ROOT_PREFIX=$MAMBA_ROOT_PREFIX

0 commit comments

Comments
 (0)