Skip to content

Commit cdecaa6

Browse files
authored
docs(readme): update usage example (#50)
* latest compiler versions * show excluding ifx on mac * no need to set step env vars * --version isn't universal
1 parent 627cbd0 commit cdecaa6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ jobs:
3232
matrix:
3333
os: [ubuntu-latest, macos-latest, windows-latest]
3434
toolchain:
35-
- {compiler: gcc, version: 11}
35+
- {compiler: gcc, version: 13}
36+
- {compiler: intel, version: '2023.2'}
3637
- {compiler: intel-classic, version: '2021.10'}
3738
include:
3839
- os: ubuntu-latest
39-
toolchain: {compiler: intel, version: '2023.2'}
40+
toolchain: {compiler: gcc, version: 12}
4041
exclude:
41-
- os: windows-latest
42-
toolchain: {compiler: intel-classic, version: '2021.10'}
42+
- os: macos-latest
43+
toolchain: {compiler: intel, version: '2023.2'}
4344

4445
steps:
4546
- uses: fortran-lang/setup-fortran@v1
@@ -48,9 +49,9 @@ jobs:
4849
compiler: ${{ matrix.toolchain.compiler }}
4950
version: ${{ matrix.toolchain.version }}
5051

51-
- run: ${{ env.FC }} --version
52-
env:
53-
FC: ${{ steps.setup-fortran.outputs.fc }}
52+
- run: |
53+
${{ env.FC }} ... # environment vars FC, CC, and CXX are set
54+
${{ steps.setup-fortran.outputs.fc }} ... # outputs work too
5455
```
5556
5657

0 commit comments

Comments
 (0)