Adding GHCup targets for build, update, serve#11
Conversation
|
This looks good, but can we also update the github CI workflow action to include the ghcup github action - should install it automatically in CI. Can we also install and select the cross compilers we need (JS / WASM), and then make sections in the workflow file. - name: Build JS using GHCUp
run: -- command goes here
- name: Build WASM using GHCUp
run: -- command goes here |
c679d4c to
3ddcf62
Compare
| - name: Install GHCup | ||
| uses: haskell/ghcup-setup@v1 | ||
|
|
||
| - name: Install GHC-wasm |
There was a problem hiding this comment.
I suppose this should have a better name?
Should it be Build WASM using GHCup in alignment with the existing Build WASM using Nix?
There was a problem hiding this comment.
I meant to comment line 41 only :|
|
I fixed the issues here: #15 |
|
Reopening to submit on behalf of @hasufell. Regarding Julian's change, I'm copying here a piece of our conversation for my own memory as regards the reasons for the changes: Me:
|
dmjio
left a comment
There was a problem hiding this comment.
Looks good, should we also add a JS backend build w/ GHCUp as well? Or can do that in a follow up PR.
|
|
||
| clean: | ||
| rm -rf dist-newstyle public | ||
| . ~/.ghc-wasm/env && cabal clean |
I'm not using Nix, but GHCup, and I had to adapt the
Makefilea bit to make this project work.These are the 2 targets I've used (
ghcup-build/ghcup-servecorresponding tobuild/serve), plus another one (ghcup-updatecorresponding toupdate) which seemed easy to adapt.