;ci: tweak

This commit is contained in:
Simon Michael 2020-10-18 22:18:48 -07:00
parent aaaa1bd5cc
commit 655ae2a9bb
3 changed files with 7 additions and 6 deletions

View File

@ -159,8 +159,8 @@ jobs:
run: |
mkdir -p ~/.local/bin
export PATH=~/.local/bin:$PATH
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
# 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
# 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
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 }}

View File

@ -114,8 +114,8 @@ jobs:
run: |
mkdir -p ~/.local/bin
export PATH=~/.local/bin:$PATH
curl -sL https://get.haskellstack.org/stable/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://get.haskellstack.org/stable/osx-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
curl -sL https://get.haskellstack.org/stable/osx-x86_64 | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/osx-x86_64 | gtar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
$stack --version
- name: Install GHC

View File

@ -121,8 +121,9 @@ jobs:
#if: steps.stack-programs-dir.outputs.cache-hit != 'true'
# this step is needed to get stack.exe into PATH, for now
run: |
curl -skL -o stack.zip http://get.haskellstack.org/stable/windows-x86_64
7z x stack.zip -oC:\Windows stack.exe
curl -sL https://get.haskellstack.org/stable/windows-x86_64 -o stack.zip
# 7z x stack.zip -oC:\Windows stack.exe
7z x stack.zip stack.exe
which stack
stack --version