Skip to content

Commit 4243fc3

Browse files
committed
Set PREFIX environment variable
1 parent a3cc21c commit 4243fc3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,22 @@ jobs:
7474
micromamba-version: latest
7575
environment-file: environment.yml
7676

77-
- name: Set the FC environment variable to the Fortran conda compiler
77+
- name: Set the PREFIX environment variable
7878
run: |
79-
echo "FC=C:\Users\runneradmin\micromamba\envs\fbld\Library\bin\flang.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
79+
echo "PREFIX=$env:MAMBA_ROOT_PREFIX\envs\fbld" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
80+
81+
- name: Set the FC environment variable
82+
run: |
83+
echo "FC=$env:PREFIX\Library\bin\flang.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8084
8185
- name: View environment variables
8286
run: |
8387
ls env:
8488
8589
- name: Configure, build, and install HeatModelF
8690
run: |
87-
cmake ./external/bmi-example-fortran -B ${{ env.BUILD_DIR }} -LA -G Ninja -DCMAKE_INSTALL_PREFIX=$env:CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release
88-
cmake --build ${{ env.BUILD_DIR }} --target install --config Release
91+
cmake ./external/bmi-example-fortran -B $env:BUILD_DIR -LA -G Ninja -DCMAKE_INSTALL_PREFIX=$env:PREFIX -DCMAKE_BUILD_TYPE=Release
92+
cmake --build $env:BUILD_DIR --target install --config Release
8993
9094
- name: Build and install package
9195
run: |

0 commit comments

Comments
 (0)