fortrangoingonforty/fgof-process / 74de57f

Browse files

Install fpm without setup action

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
74de57f5e3397574b3e8c24636612d9f994e853d
Parents
19218e3
Tree
8e67b03

1 changed file

StatusFile+-
M .github/workflows/ci.yml 12 5
.github/workflows/ci.ymlmodified
@@ -9,6 +9,9 @@ on:
99
 permissions:
1010
   contents: read
1111
 
12
+env:
13
+  FPM_VERSION: "0.13.0"
14
+
1215
 jobs:
1316
   test:
1417
     name: Test (${{ matrix.os }})
@@ -30,12 +33,16 @@ jobs:
3033
           compiler: gcc
3134
           version: latest
3235
 
33
-      - name: Set up fpm
36
+      - name: Install fpm from official release
3437
         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"
3946
 
4047
       - name: Install fpm with Homebrew
4148
         if: runner.os == 'macOS'