Skip to content

Commit

Permalink
Try sudo only on (new) Linux, where it should be available
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj committed Feb 8, 2023
1 parent a198c2b commit 7aad6c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:

- name: Sudo chmod to permit ghcup to update its cache
run: |
sudo mkdir -p /usr/local/.ghcup/cache
sudo chmod -R g+wr /usr/local/.ghcup/cache
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo mkdir -p /usr/local/.ghcup/cache
sudo chmod -R g+wr /usr/local/.ghcup/cache
fi
- uses: haskell/actions/setup@v2
id: setup-haskell
with:
Expand Down

0 comments on commit 7aad6c0

Please sign in to comment.