Conversation
|
Currently the macos build seems to be broken. I've been trying randomly poking around to fix it but I don't really know what I'm doing in this build system. #2586 Anyone has any ideas? The failure is around The error seems to be confusingly worded. The error message says that it found libsodium with arm64 architecture but it requires libsodium with x86 architecture. However, it is wrong that it should have looked for libsodium with x86 architecture, because the build is for It seems that macos-latest is configured to build arm64. However, I am also not able to change that into building x86. What I have tried so far:
|
|
The build fails immediately if the runner is set to The previous working version was |
|
I found this page:
So, we have a choice:
|
.github/workflows/main.yml
Outdated
| path: | | ||
| ${{ steps.setup-haskell-cabal.outputs.stack-root }} | ||
| - name: Install libsodium | ||
| - name: Install libsodium x86_64 |
There was a problem hiding this comment.
| - name: Install libsodium x86_64 | |
| - name: Install libsodium |
|
@winitzki It might be worth trying to use the latest haskell setup action -- Which is haskell-actions/[email protected]. The various "Downloading ..." debug messages (e.g. https://github.com/dhall-lang/dhall-haskell/actions/runs/9049961867/job/25621271094#step:3:465) in the GH Actions run linked previously originate from the haskell setup action: See https://github.com/haskell-actions/setup/blob/33585e1a16afa5875e124b0ebc89dd0c2f872c21/dist/index.js#L4523 in the definition and https://github.com/haskell-actions/setup/blob/33585e1a16afa5875e124b0ebc89dd0c2f872c21/src/installer.ts#L343 for the usage of the |
In my view, the root cause is that To resolve this issue, I propose the following path forward:
|
|
The Let me add a |
|
Let me know if this is OK to merge. This will unblock other builds. What needs to be done in order to publish both macos-x86 and macos-arm64 executables when a release is made? |
Indeed.
Would you mind adding that comment to the README?
👍
LGTM, merge it when you're done. If you include bigger changes, don't hesitate to ask for another review!
I'd proceed as follows:
|
|
@mmhat The current build with So, it looks like macos-arm64 build is working and passing all tests. I don't think we need to say in the readme that it is unsupported. Should we? |
1.42.2 * [Supports standard version 23.1.0](https://github.com/dhall-lang/dhall-lang/releases/tag/v23.1.0) * [Allow `Natural` and `Integer` literals in binary notation](dhall-lang/dhall-haskell#2540) * Fix macOS build [[#2561](dhall-lang/dhall-haskell#2561)] / [[#2586](dhall-lang/dhall-haskell#2586)] * [`dhall to-directory-tree`: Fix support for empty `Map`s](dhall-lang/dhall-haskell#2609) * [`Dhall.TH`: Improve recompilation checking](dhall-lang/dhall-haskell#2620) * `Dhall.TH` utilities now use `addDependentFile` internally so that GHC will recompile if any Dhall dependencies change * Performance improvements * Optimize `Natural/fold`: [[#2585](dhall-lang/dhall-haskell#2585)] / [[#2596](dhall-lang/dhall-haskell#2596)] * [Improve `Dhall.Map.traverseWithKey` performance](dhall-lang/dhall-haskell#2589) * The fold will now short-circuit if it reaches a fixed point * [#2611](dhall-lang/dhall-haskell#2611) * Fixes and improvements to test suite * [#2593](dhall-lang/dhall-haskell#2593) * Fixes and improvements to haddocks * [#2546](dhall-lang/dhall-haskell#2546) * Fixes and improvements to code formatting * [#2608](dhall-lang/dhall-haskell#2608)
The goal of this PR is to fix any problems with the build of dhall-haskell.
Current issues:
saltineafterstack build.The error is in installing
libsodium.This discussion https://stackoverflow.com/questions/72970363 suggests using the command:
arch -x86_64 /usr/local/bin/brew install libsodium