diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-09-21 14:28:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 14:28:06 -0600 |
commit | 1a394d7132b47527a5934066bc5d493daf963ef3 (patch) | |
tree | 4f0c4206bdb6060d142fadd9257c4d0181b59542 | |
parent | 313fe327f6dcc71b023d9f32a0650d5cf25ce009 (diff) | |
parent | 0371b8ecbe0cf42bbfbb75672e6e8a677a2adee9 (diff) | |
download | fpm-1a394d7132b47527a5934066bc5d493daf963ef3.tar.gz fpm-1a394d7132b47527a5934066bc5d493daf963ef3.zip |
Merge pull request #185 from LKedward/fix-stack-ci
Update: CI workflow
-rw-r--r-- | .github/workflows/CI.yml | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0a176af..03fcf84 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -49,26 +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://gist.github.com/certik/0e35f35753ae76f0f575d9b3d3f53633/raw/4cde02cc9215635c9401c2257a46be319e7ab6dd/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') - uses: mstksg/setup-stack@v1 - - - name: Install Haskell Windows - if: contains(matrix.os, 'windows') - run: | - (New-Object System.Net.WebClient).DownloadFile("https://get.haskellstack.org/stable/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: | @@ -105,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: | + sudo cp /home/runner/.local/bin/fpm /usr/local/bin + - name: Run tests on Haskell fpm run: | cd bootstrap |