;ci: work on getting latest stack on all platforms
This commit is contained in:
parent
506d521615
commit
484c69f795
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
@ -156,11 +156,11 @@ jobs:
|
|||||||
# actions:
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
|
||||||
# mkdir -p ~/.local/bin
|
|
||||||
# export PATH=~/.local/bin:$PATH
|
|
||||||
# if [[ ! -x ~/.local/bin/stack ]]; then curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
|
export PATH=~/.local/bin:$PATH
|
||||||
|
curl -sL https://stackage.org/stack/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
|
||||||
|
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://stackage.org/stack/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
||||||
$stack --version
|
$stack --version
|
||||||
env:
|
env:
|
||||||
stack: ${{ matrix.plan.stack }}
|
stack: ${{ matrix.plan.stack }}
|
||||||
|
|||||||
11
.github/workflows/mac.yml
vendored
11
.github/workflows/mac.yml
vendored
@ -108,11 +108,14 @@ jobs:
|
|||||||
# actions:
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR
|
# run: |
|
||||||
env:
|
# brew install haskell-stack
|
||||||
stack: ${{ matrix.plan.stack }}
|
# $stack --version
|
||||||
run: |
|
run: |
|
||||||
brew install haskell-stack
|
mkdir -p ~/.local/bin
|
||||||
|
export PATH=~/.local/bin:$PATH
|
||||||
|
curl -sL https://www.stackage.org/stack/osx-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
|
||||||
|
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://www.stackage.org/stack/osx-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
||||||
$stack --version
|
$stack --version
|
||||||
|
|
||||||
- name: Install GHC
|
- name: Install GHC
|
||||||
|
|||||||
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
@ -107,12 +107,23 @@ jobs:
|
|||||||
# - name: Add stack local bin to PATH
|
# - name: Add stack local bin to PATH
|
||||||
# run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
|
# run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
|
||||||
|
|
||||||
|
# - name: Install stack
|
||||||
|
# shell: bash
|
||||||
|
# run: |
|
||||||
|
# mkdir -p ~/.local/bin
|
||||||
|
# export PATH=~/.local/bin:$PATH
|
||||||
|
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
|
||||||
|
# $stack --version
|
||||||
|
# env:
|
||||||
|
# stack: ${{ matrix.plan.stack }}
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
#if: steps.stack-programs-dir.outputs.cache-hit != 'true'
|
#if: steps.stack-programs-dir.outputs.cache-hit != 'true'
|
||||||
# this step is needed to get stack.exe into PATH, for now
|
# this step is needed to get stack.exe into PATH, for now
|
||||||
run: |
|
run: |
|
||||||
curl -skL -o stack.zip http://www.stackage.org/stack/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 -oC:\Windows stack.exe
|
||||||
|
which stack
|
||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
# resolver lts-15.3 to avoid GHC 8.8.3 access violation, https://gitlab.haskell.org/ghc/ghc/issues/17926:
|
# resolver lts-15.3 to avoid GHC 8.8.3 access violation, https://gitlab.haskell.org/ghc/ghc/issues/17926:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user