Closed winitzki closed 1 month ago
@mmhat I could not follow one of your comments in the previous PR:
Also use runner.arch in the conditional executions here:
if [ '${{matrix.os.runner}}' == 'windows-latest' ] && [ "${package}" == 'dhall-nix' ]; then
...
if [ '${{matrix.os.runner}}' == 'windows-latest' ] && [ "${package}" == 'dhall-nix' ]; then
I'm not sure how to modify those conditionals to use `runner.arch`. Right now we have only one runner under windows.
@mmhat I followed your comments in the previous PR but it seems I'm doing something wrong. There is an error with main.yml
saying that runner
is undefined.
https://github.com/dhall-lang/dhall-haskell/actions/runs/9318616557
@winitzki Oh I guess I didn't read the docs thoroughly... The runner
context is of course only available when we have a runner :slightly_smiling_face: At line 35 of the failed job you linked we do not have a runner yet, that part is interpreted before a runner picks up a job of the workflow.
TLDR; We can only use the runner context inside the steps; I.e. whenever we could write shell code then the runner context is available there. That's at least how I understand the docs...
EDIT: See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for the availability of the different contexts.
@winitzki Nice work!
@winitzki Nice work!
Thank you for your timely help!
The build should create macos-x86_64 and macos-arm64 executables and publish them.