You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,22 @@
4
4
5
5
Action to setup a Fortran compiler.
6
6
7
+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
8
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
9
+
10
+
-[Usage](#usage)
11
+
-[Options](#options)
12
+
-[Outputs](#outputs)
13
+
-[Environment variables](#environment-variables)
14
+
-[Runner compatibility](#runner-compatibility)
15
+
-[License](#license)
16
+
17
+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
18
+
7
19
8
20
## Usage
9
21
10
-
This action allows setting up Fortran compilers on Ubuntu, MacOS and Windows runners.
22
+
This action sets up a Fortran compiler on Ubuntu, MacOS and Windows runners.
11
23
12
24
```yaml
13
25
jobs:
@@ -37,8 +49,28 @@ jobs:
37
49
- *version*: Version of the compiler toolchain, available options for *gcc* are *5-12*
38
50
39
51
52
+
## Outputs
53
+
54
+
The action sets the following outputs:
55
+
56
+
- `cc`: C compiler executable, e.g. `gcc`
57
+
- `fc`: Fortran compiler executable, e.g. `gfortran`
58
+
59
+
60
+
## Environment variables
61
+
62
+
The same values are also set as environment variables:
63
+
64
+
- `CC`
65
+
- `FC`
66
+
67
+
These are made available to subsequent workflow steps via the [`GITHUB_ENV` environment file mechanism](https://docs.github.com/en/actions/learn-github-actions/environment-variables#passing-values-between-steps-and-jobs-in-a-workflow).
68
+
69
+
40
70
## Runner compatibility
41
71
72
+
Support for the GCC toolchain varies across GitHub-hosted runner images.
0 commit comments