Skip to content

Commit

Permalink
ci: migrate to setup-micromamba (#20)
Browse files Browse the repository at this point in the history
* migrate to setup-micromamba
* fix branch name in integration.yml
  • Loading branch information
wpbonelli committed May 24, 2023
1 parent 9071105 commit 702b1a7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 702b1a7

Please sign in to comment.