aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/CI.yml
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-07-21 13:29:32 -0600
committerGitHub <noreply@github.com>2020-07-21 13:29:32 -0600
commit2dcd2df3692b8769558428ae0ae77d15fcc804f4 (patch)
tree58b1c7ce207d83d9801f743bcc8e213a2f631a3a /.github/workflows/CI.yml
parentac873ef55037b554019a04ffc1f104d8d0a7b0f5 (diff)
parent55d59057173235daac3eee96de78b0b35412d0e6 (diff)
downloadfpm-2dcd2df3692b8769558428ae0ae77d15fcc804f4.tar.gz
fpm-2dcd2df3692b8769558428ae0ae77d15fcc804f4.zip
Merge pull request #131 from certik/f
Initial Fortran infrastructure
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r--.github/workflows/CI.yml23
1 files changed, 21 insertions, 2 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index ca1ba03..f4e2878 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -61,10 +61,29 @@ jobs:
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}
- - name: Build
+ - name: Build Haskell fpm
run: |
+ cd bootstrap
stack build
+ stack install
- - name: Run tests
+ - name: put fpm to PATH (macOS)
+ if: contains(matrix.os, 'macos')
+ run: |
+ cp /Users/runner/.local/bin/fpm /usr/local/bin
+
+ - name: put fpm to PATH (Windows)
+ if: contains(matrix.os, 'windows')
run: |
+ copy "C:\Users\runneradmin\AppData\Roaming\local\bin\fpm.exe" "C:\Program Files\Git\usr\bin"
+
+ - name: Run tests on Haskell fpm
+ run: |
+ cd bootstrap
stack test
+
+ - name: Build and run Fortran fpm
+ run: |
+ cd fpm
+ fpm build
+ fpm run