Skip to content

capDL-tool: update to LTS 24.32, ghc-9.10.3 - #87

Merged
lsf37 merged 3 commits into
seL4:masterfrom
nspin:pr/bump-lts-snapshot
Nov 11, 2026
Merged

lsf37 merged 3 commits into
seL4:masterfrom
nspin:pr/bump-lts-snapshot

Conversation

@nspin

@nspin nspin commented Mar 24, 2026

Copy link
Copy Markdown
Member

The instances of {-# OPTIONS_GHC -Wno-x-partial #-} throughout are to enable the continued use of functions like head.

@nspin
nspin force-pushed the pr/bump-lts-snapshot branch 2 times, most recently from 12acad2 to 68c9761 Compare March 25, 2026 00:38
@lsf37

lsf37 commented Mar 25, 2026

Copy link
Copy Markdown
Member

Updating GHC only here is problematic, we have to coordinate with the other places we are using GHC. For instance, if we do that here and not do it in l4v, the CI docker containers will have the wrong version for one of them and stack will download GHC from scratch each time.

@nspin
nspin force-pushed the pr/bump-lts-snapshot branch from 68c9761 to 0adcf1a Compare July 7, 2026 07:57
@lsf37

lsf37 commented Nov 10, 2026

Copy link
Copy Markdown
Member

I'm having a look at rebasing this and bumping to LTS 24.66 and doing the same for l4v. The version we are using is indeed getting a bit old.

@lsf37
lsf37 force-pushed the pr/bump-lts-snapshot branch 2 times, most recently from a6f658f to f648d88 Compare November 10, 2026 08:24
nspin and others added 3 commits November 10, 2026 19:40
Update the stack and cabal files. Needs minor tweaks to State.hs.

Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
The GitHub Ubuntu 26.04LTS runners only support python 3.10 and above.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
The GHC download + build is extremely long if the GHC version does not
happen to be present on the GitHub runner. Cache the build, it should
very rarely go out of date.

Also use stack-no-global: true, because capDL-tool uses a local stack
install step, i.e. a global install would install GHC twice. This also
removes the need to mention the GHC version in the workflow file.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
@lsf37
lsf37 force-pushed the pr/bump-lts-snapshot branch from f648d88 to 2947495 Compare November 10, 2026 08:41

@lsf37 lsf37 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, this now works and is ready to go when the docker files and l4v have been updated.

Edit: this can merge once the tests in seL4/seL4-CAmkES-L4v-dockerfiles#102 have passed

lsf37 added a commit to seL4/l4v that referenced this pull request Nov 11, 2026
Staying in sync with seL4/capdl#87, bump to the latest stack LTS version
and GHC 9.10.3.

Apart from version bumps, this needs a few new imports which are no
longer automatic, and -fno-warn-x-partial for functions like `head`.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
lsf37 added a commit to seL4/l4v that referenced this pull request Nov 11, 2026
Staying in sync with seL4/capdl#87, bump to the latest stack LTS version
and GHC 9.10.3.

Apart from version bumps, this needs a few new imports which are no
longer automatic, and -fno-warn-x-partial for functions like `head`.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
@lsf37
lsf37 merged commit 55d2ef2 into seL4:master Nov 11, 2026
11 checks passed
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