diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 72e471dbd6a..74cfab9c3b0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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: