-
Notifications
You must be signed in to change notification settings - Fork 108
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
Only install handlers when HAVE_SIGNAL_H
#365
Only install handlers when HAVE_SIGNAL_H
#365
Conversation
50fa81a
to
0a228dc
Compare
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.
Is there a way to test this change?
@amesgen would it be possible to add something like https://github.com/haskell/unix/blob/master/.github/workflows/ci-wasm32-wasi.yml ? |
Yeah, I will try to add something here 👍 |
I pushed a commit running all tests except the Depends on haskellari/splitmix#73 as splitmix is a transitive test dependency. @TerrorJack if you want to take a look: Given your blog post, is there a nicer way to treat WASM files as executables in PATH than in this PR? |
@amesgen The There is one little potential improvement: instead of your own wrapper script that calls |
This works great locally, but on GHA,
I guess that this is due to one of the additional flags in wasmtime.sh. So I will leave it as is for now. |
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.
Thanks, great work!
Some suggestion on the cache key for the new CI job.
.github/workflows/ci.yaml
Outdated
path: | | ||
~/.ghc-wasm/.cabal/store | ||
dist-newstyle | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }} |
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.
matrix.ghc
is undefined here, as there is no matrix
strategy for this job.
I recommend actionlint
to find such problems statically.
Also, the key should have component pertaining to the job, e.g.:
key: build-wasi-${{ runner.os }}-ghc-${{ env.FLAVOUR }}-sha-${{ github.sha }}
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.
Good catch, thanks for the pointer to actionlint
! Should now be fixed; I also pinned ghc-wasm-meta and included the rev in the cache key 👍
6c285e5
to
72b9d41
Compare
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.
Thanks for the fixes to caching!
This allows to run test suites on platforms that do not support signals, such as the new WASM backend in GHC 9.6.