Skip to content

Commit 820d8ce

Browse files
committed
Use environment variables instead of contexts
I swear I read the docs.
1 parent 383c711 commit 820d8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
env:
7070
LIBRARY_PREFIX: $env:CONDA_PREFIX\Library
71-
FC: $env:CONDA_PREFIX\Library\bin\flang-new.exe
71+
FC: ${env:LIBRARY_PREFIX}\bin\flang-new.exe
7272

7373
steps:
7474
- uses: actions/checkout@v4
@@ -91,7 +91,7 @@ jobs:
9191
- name: Configure, build, and install
9292
working-directory: ${{ github.workspace }}/build
9393
run: |
94-
cmake .. -G Ninja -DCMAKE_Fortran_COMPILER="${{ env.FC }}" -DCMAKE_INSTALL_PREFIX="${{ env.LIBRARY_PREFIX }}" -DCMAKE_BUILD_TYPE=Release
94+
cmake .. -G Ninja -DCMAKE_Fortran_COMPILER=${env:FC} -DCMAKE_INSTALL_PREFIX=${env:LIBRARY_PREFIX} -DCMAKE_BUILD_TYPE=Release
9595
cmake --build . --target install --config Release
9696
9797
- name: Check (for humans)

0 commit comments

Comments
 (0)