Install fpm without setup action
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
74de57f5e3397574b3e8c24636612d9f994e853d- Parents
-
19218e3 - Tree
8e67b03
74de57f
74de57f5e3397574b3e8c24636612d9f994e853d19218e3
8e67b03| Status | File | + | - |
|---|---|---|---|
| M |
.github/workflows/ci.yml
|
12 | 5 |
.github/workflows/ci.ymlmodified@@ -9,6 +9,9 @@ on: | ||
| 9 | 9 | permissions: |
| 10 | 10 | contents: read |
| 11 | 11 | |
| 12 | +env: | |
| 13 | + FPM_VERSION: "0.13.0" | |
| 14 | + | |
| 12 | 15 | jobs: |
| 13 | 16 | test: |
| 14 | 17 | name: Test (${{ matrix.os }}) |
@@ -30,12 +33,16 @@ jobs: | ||
| 30 | 33 | compiler: gcc |
| 31 | 34 | version: latest |
| 32 | 35 | |
| 33 | - - name: Set up fpm | |
| 36 | + - name: Install fpm from official release | |
| 34 | 37 | if: runner.os != 'macOS' |
| 35 | - uses: fortran-lang/setup-fpm@v9 | |
| 36 | - with: | |
| 37 | - github-token: ${{ secrets.GITHUB_TOKEN }} | |
| 38 | - fpm-version: v0.13.0 | |
| 38 | + run: | | |
| 39 | + asset="fpm-${FPM_VERSION}-linux-x86_64-gcc-12" | |
| 40 | + curl -fsSLo "${asset}" "https://github.com/fortran-lang/fpm/releases/download/v${FPM_VERSION}/${asset}" | |
| 41 | + curl -fsSLo "${asset}.sha256" "https://github.com/fortran-lang/fpm/releases/download/v${FPM_VERSION}/${asset}.sha256" | |
| 42 | + shasum -a 256 -c "${asset}.sha256" | |
| 43 | + chmod +x "${asset}" | |
| 44 | + mv "${asset}" fpm | |
| 45 | + echo "${PWD}" >> "$GITHUB_PATH" | |
| 39 | 46 | |
| 40 | 47 | - name: Install fpm with Homebrew |
| 41 | 48 | if: runner.os == 'macOS' |