From 702b1a74c7e2b087e824c522e1b26ba84d52dd21 Mon Sep 17 00:00:00 2001 From: w-bonelli Date: Wed, 24 May 2023 07:33:54 -0400 Subject: [PATCH] ci: migrate to setup-micromamba (#20) * migrate to setup-micromamba * fix branch name in integration.yml --- .github/workflows/integration.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 27b94a2..b0a1f1d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -2,14 +2,14 @@ name: Integration testing on: push: branches: - - main + - master - develop* - ci-diagnose* paths-ignore: - '**.md' pull_request: branches: - - main + - master - develop paths-ignore: - '**.md' @@ -40,21 +40,25 @@ jobs: path: modflow6 - name: Setup Micromamba - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: + micromamba-root-path: ${{ runner.temp }}/micromamba-root environment-file: modflow6/environment.yml + cache-environment: true + cache-downloads: true + init-shell: >- + bash + powershell - name: Setup ifort uses: modflowpy/install-intelfortran-action@v1 - # with: - # path: ${{ runner.os != 'Windows' && 'bin' || 'C:\Program Files (x86)\Intel\oneAPI' }} - name: Fix Micromamba path (Windows) if: runner.os == 'Windows' shell: pwsh run: | # https://github.com/modflowpy/install-intelfortran-action#conda-scripts - $mamba_bin = "C:\Users\runneradmin\micromamba-root\envs\modflow6\Scripts" + $mamba_bin = "${{ runner.temp }}\micromamba-root\envs\modflow6\Scripts" echo $mamba_bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Build modflow6 (Linux & Mac)