Skip to content

Commit

Permalink
Fix shell variables in linux static build stack install (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Aug 23, 2023
1 parent 06346d1 commit a167fee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/linux-static-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:

- name: install stack
run: |
curl https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION/stack-$STACK_VERSION-linux-x86_64-static.tar.gz -OL
tar xf stack-STACK_VERSION-linux-x86_64-static.tar.gz
cp stack-STACK_VERSION-linux-x86_64-static/stack /usr/local/bin
TAR_BASE_NAME=stack-$STACK_VERSION-linux-x86_64-static
TAR_FILE_NAME=$TAR_BASE_NAME.tar.gz
curl https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION/$TAR_FILE_NAME -OL
tar xf $TAR_FILE_NAME
cp $TAR_BASE_NAME/stack /usr/local/bin
- name: Stack permissions bug workaround
run: "chown -R $(id -un):$(id -gn) ~"
Expand Down

0 comments on commit a167fee

Please sign in to comment.