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

Simplify the specification of the testing job #3492

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

michaelpj
Copy link
Collaborator

@michaelpj michaelpj commented Feb 14, 2023

I couldn't make the matrix thing work, but this still makes it so that we can programmatically select the packages to build.

@michaelpj michaelpj marked this pull request as draft February 14, 2023 12:29
@michaelpj michaelpj force-pushed the mpj/test-job-matrix branch 5 times, most recently from f066b2e to 914f77d Compare June 11, 2023 12:16
@@ -57,11 +57,9 @@ runs:
- if: inputs.shorten-hls == 'true'
name: Workaround shorten binary names
run: |
sed -i.bak -e 's/haskell-language-server/hls/g' \
-e 's/haskell_language_server/hls/g' \
sed -i.bak -e 's/executable haskell-language-server/executable hls/g' \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now just shortens the executable names, not the package name. That makes it easier to refer to the package.

This moves the specificaiton of which packages we have and which
versions of GHC they don't support to a data file, which we can then use
to select the packages to build programmatically, rather than having an
explicit listing of steps in the workflow file.
@michaelpj michaelpj force-pushed the mpj/test-job-matrix branch from 4fef983 to 2b22b2a Compare June 11, 2023 15:37
@michaelpj michaelpj changed the title Try turning the test job into a matrix build Simplify the specification of the testing job Jun 11, 2023
@michaelpj
Copy link
Collaborator Author

I think we should do the same thing in caching.yml, but I'm not sure what the logic is for what gets built there. It seems to condition on GHC version also?

@michaelpj michaelpj force-pushed the mpj/test-job-matrix branch from 60deeac to 883fd4c Compare June 12, 2023 08:52
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

Successfully merging this pull request may close these issues.

1 participant