Skip to content

Ghcup#15

Open
hasufell wants to merge 28 commits intohaskell-miso:mainfrom
hasufell:ghcup
Open

Ghcup#15
hasufell wants to merge 28 commits intohaskell-miso:mainfrom
hasufell:ghcup

Conversation

@hasufell
Copy link

This fixes #11 which had some issues with the Makefile and environment setup.

None of that was related to ghcup or the wasm-cabal script btw.

Comment on lines -20 to -41
- uses: cachix/install-nix-action@v31
- name: Install GHCup
uses: haskell/ghcup-setup@v1
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
cabal: latest

- name: Install cachix
uses: cachix/cachix-action@v16
with:
name: haskell-miso-cachix

- name: Build WASM using Nix
run: nix develop .#wasm --command bash -c "make"

- name: Clean and GC
run: nix develop .#wasm --command bash -c "make" && nix-collect-garbage -d

- name: Build JS using Nix
run: nix develop .#ghcjs --command bash -c "make js"

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
Copy link
Collaborator

Choose a reason for hiding this comment

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

Most of this needs to be put back in. I removed it just to make my attempts in running the actions a bit faster. I suppose I could have just put my actions first in the list. But I didn't, sorry.

Copy link
Author

Choose a reason for hiding this comment

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

Feel free to use my commits. I don't have the time to finish this PR.

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.

2 participants