Skip to content

Commit

Permalink
ci: binaries-linux-x64: try a fix for unwritable $HOME issue
Browse files Browse the repository at this point in the history
work around actions/runner#863 which is causing
"Preventing creation of Stack root '/github/home/.stack/'. Parent directory '/github/home/' is owned by someone else."
  • Loading branch information
simonmichael committed Apr 18, 2024
1 parent 814a19b commit aa19931
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/binaries-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ jobs:
run: |
apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz tar perl zlib-dev zlib-static
- name: Fix $HOME for following steps (work around https://github.com/actions/runner/issues/863)
run: |
ls /
ls /home
whoami
sudo sh -c "echo HOME=/home/github >> $GITHUB_ENV"
- name: Add .ghcup/bin to PATH for following steps
run: |
echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH
Expand Down

0 comments on commit aa19931

Please sign in to comment.