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
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ __GitHub Action to setup the [Fortran Package Manager](https://github.com/fortra
9
9
## Usage
10
10
11
11
```yaml
12
-
- uses: lkedward/setup-fpm@v1
12
+
- uses: lkedward/setup-fpm@v2
13
+
with:
14
+
github-token: ${{ secrets.GITHUB_TOKEN }}
13
15
```
14
16
15
17
This will download the latest `fpm` version to the CI machine and add it to the path.
@@ -23,9 +25,11 @@ __e.g.:__
23
25
24
26
## Options
25
27
26
-
__`use-bootstrap`__ (*optional,default:*`false`) whether to fetch and use the legacy 'bootstrap' implementation
28
+
__`github-token`__ (*only needed if `fpm-version` is `'latest'` or not specified*), an access token used to query the latest version of `fpm`. Set to `${{ secrets.GITHUB_TOKEN }}` to use the existing github actions token.
29
+
30
+
__`fpm-version`__ (*optional,default:*`'latest'`) the tag corresponding a Github release from which to fetch the `fpm` binary.
31
+
- If set to `'latest'` (_default_) then the latest `fpm` release at [fortran-lang/fpm](https://github.com/fortran-lang/fpm/releases/latest) will be substituted. `github-token` must be provided if `fpm-version` is `'latest'`.
27
32
28
-
__`fpm-version`__ (*optional*) the tag corresponding a Github release from which to fetch the `fpm` binary.
29
-
If omitted, the latest `fpm` release at [fortran-lang/fpm](https://github.com/fortran-lang/fpm/releases/latest) will be substituted.
33
+
__`use-bootstrap`__ (*optional,default:*`false`) whether to fetch and use the legacy 'bootstrap' implementation
30
34
31
35
__`fpm-repository`__ (*optional, default:* `https://github.com/fortran-lang/fpm`) which Github fork to fetch release binaries from.
0 commit comments