Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskell-actions/setup, could we use it? #9592

Open
philderbeast opened this issue Jan 6, 2024 · 2 comments
Open

haskell-actions/setup, could we use it? #9592

philderbeast opened this issue Jan 6, 2024 · 2 comments

Comments

@philderbeast
Copy link
Collaborator

philderbeast commented Jan 6, 2024

Could we use haskell-actions/setup in our github workflows?

It’s sad that we have to add so much boilerplate for such a simple step.
Is this ghcup cache thing still relevant? I think using haskell-actions/setup
is cleaner: could we use it?

Originally posted by @ulysses4ever in #9573 (comment)

@philderbeast
Copy link
Collaborator Author

The repetition we have:

$ grep -rwn --exclude-dir=".git" --include="*.yml" . -e 'sudo mkdir -p /usr/local/.ghcup/cache'
./.github/workflows/changelogs.yml:40:            sudo mkdir -p /usr/local/.ghcup/cache
./.github/workflows/validate.yml:266:            sudo mkdir -p /usr/local/.ghcup/cache
./.github/workflows/quick-jobs.yml:36:            sudo mkdir -p /usr/local/.ghcup/cache
./.github/workflows/quick-jobs.yml:77:            sudo mkdir -p /usr/local/.ghcup/cache
./.github/workflows/quick-jobs.yml:111:            sudo mkdir -p /usr/local/.ghcup/cache
./.github/workflows/bootstrap.yml:54:            sudo mkdir -p /usr/local/.ghcup/cache

- name: Sudo chmod to permit ghcup to update its cache
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo ls -lah /usr/local/.ghcup/cache
sudo mkdir -p /usr/local/.ghcup/cache
sudo ls -lah /usr/local/.ghcup/cache
sudo chown -R $USER /usr/local/.ghcup
sudo chmod -R 777 /usr/local/.ghcup
fi

@ulysses4ever
Copy link
Collaborator

The main workflow, Validate, is already using the action happily, so I do think it's impossible…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants