diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2020-09-21 20:12:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 20:12:04 +0100 |
commit | 49bea716c0d15d82b5f51f8eda06aed5fd3e9dc7 (patch) | |
tree | 2b5c9a2dab708b799eac269c2125224fba05861e /.github | |
parent | 2c5de3c50bc9b06bbc9884f6a75690bdce92bb53 (diff) | |
download | fpm-49bea716c0d15d82b5f51f8eda06aed5fd3e9dc7.tar.gz fpm-49bea716c0d15d82b5f51f8eda06aed5fd3e9dc7.zip |
Use pre-installed haskell stack
Copy fpm to /usr/local/bin on ubuntu
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CI.yml | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 597b385..f71f2ee 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -49,28 +49,6 @@ jobs: which gfortran-${GCC_V} which gfortran - - name: Install Haskell macOS - if: contains(matrix.os, 'macos') - run: | - mkdir /Users/runner/.local/bin - curl -L https://github.com/commercialhaskell/stack/releases/download/v2.3.3/stack-2.3.3-osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C /Users/runner/.local/bin - - - name: Install Haskell Linux - if: contains(matrix.os, 'ubuntu') - run: | - mkdir -p /home/runner/.local/bin - curl -L https://github.com/commercialhaskell/stack/releases/download/v2.3.3/stack-2.3.3-linux-x86_64.tar.gz | tar --strip-components 1 --wildcards -xz */stack -C /home/runner/.local/bin - - - name: Install Haskell Windows - if: contains(matrix.os, 'windows') - run: | - (New-Object System.Net.WebClient).DownloadFile("https://github.com/commercialhaskell/stack/releases/download/v2.3.3/stack-2.3.3-windows-x86_64.zip", "windows-x86_64.zip") - mkdir stack-tmp - cd stack-tmp - unzip ..\windows-x86_64.zip - copy stack.exe "C:\Program Files\Git\usr\bin" - cd .. - - name: Install GFortran Linux if: contains(matrix.os, 'ubuntu') run: | @@ -107,6 +85,11 @@ jobs: run: | copy "C:\Users\runneradmin\AppData\Roaming\local\bin\fpm.exe" "C:\Program Files\Git\usr\bin" + - name: put fpm to PATH (Linux) + if: contains(matrix.os, 'ubuntu') + run: | + cp /home/runner/.local/bin/fpm /usr/local/bin + - name: Run tests on Haskell fpm run: | cd bootstrap |