ci: github: tweaks
This commit is contained in:
parent
7c85e00a0c
commit
fefb8062ba
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -2,7 +2,6 @@
|
|||||||
# Based on https://gist.github.com/mstksg/11f753d891cee5980326a8ea8c865233
|
# Based on https://gist.github.com/mstksg/11f753d891cee5980326a8ea8c865233
|
||||||
# ("Currently not working for cabal-install >= 3")
|
# ("Currently not working for cabal-install >= 3")
|
||||||
# Based on https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-complex.yml
|
# Based on https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-complex.yml
|
||||||
|
|
||||||
# ref:
|
# ref:
|
||||||
# https://help.github.com/en/actions
|
# https://help.github.com/en/actions
|
||||||
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
|
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
|
||||||
@ -98,41 +97,38 @@ jobs:
|
|||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2 # https://github.com/marketplace/actions/checkout
|
uses: actions/checkout@v2 # https://github.com/marketplace/actions/checkout
|
||||||
|
|
||||||
- name: Install stack (ubuntu)
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
if: matrix.os == 'ubuntu-latest'
|
name: Install stack (ubuntu)
|
||||||
# preinstalled
|
|
||||||
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
||||||
run: |
|
run: |
|
||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
- name: Install stack (mac)
|
- if: matrix.os == 'macos-latest'
|
||||||
if: matrix.os == 'macos-latest'
|
name: Install stack (mac)
|
||||||
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR
|
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR
|
||||||
run: |
|
run: |
|
||||||
brew install haskell-stack
|
brew install haskell-stack
|
||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
- name: Install stack (windows)
|
- if: matrix.os == 'windows-latest'
|
||||||
if: matrix.os == 'windows-latest'
|
name: Install stack (windows)
|
||||||
# PowerShell.exe -Command "&{Invoke-WebRequest -OutFile %HOME%\\stack.zip https://get.haskellstack.org/stable/windows-x86_64.zip ; 7z e ${installdir}\\stack.zip -o${installdir} stack.exe }"
|
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
$Env:Path
|
curl -skL -o stack.zip https://get.haskellstack.org/stable/windows-x86_64
|
||||||
curl -skL -o stack.zip http://www.stackage.org/stack/windows-x86_64
|
7z x stack.zip -oC:\Windows stack.exe
|
||||||
7z x stack.zip stack.exe
|
|
||||||
move stack.exe C:\Windows\System32\WindowsPowerShell\v1.0
|
|
||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
- name: Install haskell deps
|
- name: Install haskell deps
|
||||||
run: |
|
run: |
|
||||||
stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
|
stack --install-ghc $ARGS test --bench --only-dependencies
|
||||||
|
# stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
|
||||||
env:
|
env:
|
||||||
ARGS: ${{ matrix.plan.resolver }}
|
ARGS: ${{ matrix.plan.resolver }}
|
||||||
# BUILD: ${{ matrix.plan.build }}
|
# BUILD: ${{ matrix.plan.build }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
stack $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
||||||
|
# stack --no-terminal $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
||||||
env:
|
env:
|
||||||
ARGS: ${{ matrix.plan.resolver }}
|
ARGS: ${{ matrix.plan.resolver }}
|
||||||
# BUILD: ${{ matrix.plan.build }}
|
# BUILD: ${{ matrix.plan.build }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user