-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
[#454] Implement cross-platform GitHub Actions. #511
[#454] Implement cross-platform GitHub Actions. #511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why your PR is still not approved? Because I chose not to approve it. But they will.
Co-authored-by: hint-man[bot] <44720633+hint-man[bot]@users.noreply.github.com>
Repo created using Summoner with this change: https://github.com/gdziadkiewicz/NowyTestowy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdziadkiewicz Nice work! I left some comments and some things to keep in mind.
The implementation looks good 👍 But a few more patches required 🙂
33a3982
to
6da1b70
Compare
Hi @gdziadkiewicz! I see that you've also moved everything to Cabal-3.0. This is a separate big issue, and ideally should be done separately. For now, the only thing required for GitHub Actions is to use |
6da1b70
to
4035c0c
Compare
@chshersh I reverted cabal 3.0 changes, and now I'm working on remaining issues. |
Committed changes to https://github.com/gdziadkiewicz/NowyTestowy |
I believe that this is ready to be reviewed once again :) |
@chshersh While working on GitHub Actions for my Haskell project, I found out that
to the stack job. What's your opinion on adding that? |
summoner-cli/src/Summoner/Default.hs
Outdated
@@ -42,6 +43,10 @@ defaultGHC = maxBound | |||
defaultCabal :: Text | |||
defaultCabal = "2.4" | |||
|
|||
-- | Default version of the Stack. | |||
defaultStack :: Text | |||
defaultStack = "2.3.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.5.1 was released since I did that. Should I update it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to 2.5.1 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! 👍 I hope I didn't miss anything 🤞 Waiting for the review from @vrom911, she can review very carefully and notice anything suspicious.
I found out that actions/setup-haskell will install unneeded Cabal and global GHC if configured the way we do it here
What's your opinion on adding that?
Can you elaborate a bit more on that? The fact that setup-haskell
installs global GHC is plus ➕ It can do it faster and more efficiently than Stack (either via ghcup
or even using already provided by environment version). So, in Stack build we use the --system-ghc
flag to tell Stack to use already installed GHC and not install it on its own.
@@ -17,7 +17,7 @@ cache: | |||
|
|||
environment: | |||
STACK_ROOT: C:\sr | |||
STACK_VERSION: 2.1.1 | |||
STACK_VERSION: 2.5.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that Stack 2.5.1 is on Chocolatey, so this should work 👍
Just a lot of places needed to be look before bumping versions of tools everywhere...
I missed the use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, thanks so much for working on this. And thanks a lot for your patience 🤗
Btw, @gdziadkiewicz, are you participating in Hacktoberfest this year? The Hacktoberfest rules has changed, and now it's opt-in for all repositories, but we haven't added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fantastic! ✨
Thanks a lot for working on this one 💪🏼
Fix #454