John MacFarlane
5ff4960568
Add stack.yaml hash to cache key for nix action.
2026-11-05 18:39:11 -08:00
John MacFarlane
df2954da96
CI: cache ghc.
2026-11-02 07:46:18 -08:00
John MacFarlane and Claude Opus 5.5
50e5c0791a
CI: rework caching so it can be shared between workflows. ( #12049 )
...
Key caches on a hash of the dependency plan, computed by a new composite
action, so that CI, nightly, and release candidate builds use the same
cabal store. Use the same cabal version everywhere and pass
`--enable-tests`, since both affect the unit ids of dependencies.
Nightly now uses cabal build and list-bin, because cabal install
doesn't accept `--enable-tests`.
Save caches only on pushes to main. Replace secrets.CACHE_VERSION,
which is empty in PRs from forks, so that those PRs restore main's
caches instead of rebuilding and saving their own.
Pass --enable-tests to cabal test on Linux, so that it doesn't
recompile everything compiled by cabal build.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-01 17:46:22 -08:00
John MacFarlane
06f84eccd9
Add check-sdist to CI.
2026-10-31 11:27:32 -07:00
John MacFarlane
52faab9654
Nightly: use macos-15 instead of macos-26.
...
Hopefully this will fix the build failure.
Cf. actions/runner-images#14940 and haskell/cabal#12468
2026-10-27 09:54:34 -07:00
John MacFarlane
e8b83b9ffe
Revert "Nightly: use default Xcode's toolchain and SDK on macOS."
...
This reverts commit c56e34f5ad .
2026-10-26 14:47:55 -07:00
John MacFarlane
fe7bc1744c
Acitons: Fix cache in nightly.
2026-10-26 09:04:31 -07:00
John MacFarlane
d69b85e059
Use zip for macos package builds outer container.
2026-10-24 10:06:33 -07:00
John MacFarlane
94d222e344
Fix typo in github release yml.
2026-10-22 23:18:26 -07:00
John MacFarlane
397dc624f7
Fix cabal freeze commands in release generation.
2026-10-22 22:59:16 -07:00
John MacFarlane
c1f41c3b73
Release candidate: fix freeze step.
2026-10-22 22:01:44 -07:00
John MacFarlane
dc5fa8cadb
Add cabal freeze step to release-candidate.
...
This will allow us to figure out exactly what versions were
used in compiling a release.
2026-10-22 13:06:44 -07:00
John MacFarlane and Claude Opus 5.5
e44a2f3d05
CI: use cabal update -z.
...
Without -z, cabal update clones source-repository-packages into
dist-newstyle. Restoring an older dist-newstyle cache on top of
that fresh shallow clone corrupts it ("Could not read <commit>"),
which broke the Windows and Linux 9.14 jobs after the citeproc
tag changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-19 12:55:19 -07:00
John MacFarlane and Claude Opus 5.5
c56e34f5ad
Nightly: use default Xcode's toolchain and SDK on macOS.
...
The runner's Command Line Tools now ship the macOS 27 SDK, whose
.tbd files the default Xcode 26.x linker can't parse ("unknown
architecture arm64e.x1"). Set DEVELOPER_DIR for the whole macos
job and SDKROOT for subsequent steps, so the linker and SDK match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-19 12:04:45 -07:00
John MacFarlane
9ae5243e53
Revert "Try again to fix macos nightly. Point build at default xcode's SDK."
...
This reverts commit be1e13b05d .
2026-10-19 11:12:10 -07:00
John MacFarlane
be1e13b05d
Try again to fix macos nightly. Point build at default xcode's SDK.
2026-10-19 10:56:32 -07:00
John MacFarlane
fde5aef5bd
Nightly: try pointing to macos-26 instead of latest.
2026-10-19 10:02:16 -07:00
John MacFarlane and Claude Opus 5.5
a101ea1b71
CI: ignore the project when getting the cabal store path.
...
With a source-repository-package in cabal.project, cabal path
checks out the repository first, and git's output on stdout
ended up in GITHUB_OUTPUT, breaking the step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-18 12:44:30 -07:00
John MacFarlane
b904cb9a04
Move Windows signing step to separate action.
...
This will allow us to trigger it manually, if the previous
attempt times out due to a slot response to the email.
No point rebuilding the whole Windows binary in this case.
2026-10-18 12:28:43 -07:00
John MacFarlane
3951ca5459
Nightly: add caching.
2026-10-16 09:50:32 -07:00
John MacFarlane
b3433c0339
Remove 'install numa' in CI.
2026-10-13 23:41:05 -07:00
John MacFarlane and Claude Opus 5.5
ea3c6f8d50
CI: run cabal update before cabal path.
...
On a fresh runner there is no cabal config file, and cabal path
prints a notice about that on stdout, which corrupted
$GITHUB_OUTPUT. cabal update writes a default config file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-13 23:41:05 -07:00
John MacFarlane and Claude Opus 5.5
81686e803b
Improve CI caching and fix Makefile build targets.
...
CI:
- Include a hash of cabal.project/stack.yaml and the .cabal files in
cache keys, with restore-keys, so caches are refreshed as
dependencies change instead of being frozen at the first save.
- Determine the cabal store location with `cabal path --store-dir`;
the Windows path used %LOCALAPPDATA%, which actions/cache does not
expand.
- Fix stack cache keys, which referred to a nonexistent matrix.
- Give each matrix job its own dist-newstyle cache.
- Cancel superseded CI runs on pull requests.
- Run apt-get update before installing libnuma-dev.
- Remove duplicate -Werror on Windows.
cabal.project: default to +http on GHC >= 9.14 (previously done only
in CI), so local builds behave the same; -f-http still overrides it.
Makefile:
- Use bash as SHELL (check-cabal uses pushd, check-version-sync ==).
- Fix $(id -u) in debpkg, which make expanded to empty.
- Fix missing echo in validate-docx-golden-tests{,2}.
- Ensure pandoc is built before rules that run it to produce files.
- Use git ls-files for SOURCEFILES, not the main branch's tree.
- Drop redundant embed_data_files flag in quick-stack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-13 23:41:05 -07:00
Samuel Huang
f40cbd712e
CI: add GHC 9.14 to test matrix ( #11910 )
...
GHC 9.14 ships base 4.22 and containers 0.8, newer than the bounds of
serialise, cborg, and haddock-library allow. Relax them under
impl(ghc >= 9.14) so other lanes are unaffected, and force -fhttp on
the 9.14 lane: given the choice, the solver prefers disabling the
http flag to violating bounds.
2026-09-26 21:43:03 -07:00
dependabot[bot]
2d28cf6ac2
Bump signpath/github-action-submit-signing-request from 2 to 3 ( #11870 )
...
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request ) from 2 to 3.
- [Release notes](https://github.com/signpath/github-action-submit-signing-request/releases )
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
dependency-version: '3'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-13 22:19:43 -07:00
John MacFarlane
2d59398bf0
Nix build: only test on ubuntu.
...
It's a 2.6 GB cache to do macos also...
2026-09-06 10:39:38 -07:00
John MacFarlane
5118be2e66
CI: fix name of cabal work cache for Windows.
...
It was misleading named stack-work.
2026-09-06 10:37:31 -07:00
John MacFarlane
13a9a67e4d
CI: test -embed_data_files build.
2026-09-01 22:47:15 -07:00
John MacFarlane
dfd654cf36
release candidate action: create proper .tar.gz for macos.
...
Previously this happened automatically, but now we get a zip
file with no containing directory?
2026-08-28 15:10:48 -07:00
John MacFarlane
447361c7d5
CI: add release-announcements.txt to ignored.
2026-07-25 13:09:16 +02:00
John MacFarlane
89c887682f
Trigger nix workflow when flake.lock changes
2026-07-21 09:32:36 +02:00
John MacFarlane
90adedb7c1
nix.yml - trigger only on certain file changes.
2026-07-20 13:15:48 +02:00
dependabot[bot]
4da39af987
Bump nix-community/cache-nix-action from 6 to 7 ( #11765 )
...
Bumps [nix-community/cache-nix-action](https://github.com/nix-community/cache-nix-action ) from 6 to 7.
- [Release notes](https://github.com/nix-community/cache-nix-action/releases )
- [Changelog](https://github.com/nix-community/cache-nix-action/blob/main/RELEASES.md )
- [Commits](https://github.com/nix-community/cache-nix-action/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: nix-community/cache-nix-action
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 11:03:10 +02:00
dependabot[bot]
937412264a
Bump cachix/install-nix-action from 30 to 31 ( #11766 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 30 to 31.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Changelog](https://github.com/cachix/install-nix-action/blob/master/RELEASE.md )
- [Commits](https://github.com/cachix/install-nix-action/compare/v30...v31 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-version: '31'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 11:02:56 +02:00
dependabot[bot]
4e92bd54bc
Bump actions/setup-dotnet from 5 to 6 ( #11767 )
...
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-dotnet/releases )
- [Commits](https://github.com/actions/setup-dotnet/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-dotnet
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 11:02:37 +02:00
dependabot[bot]
8c5b20341b
Bump actions/checkout from 4 to 7 ( #11768 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v7 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 11:02:15 +02:00
John MacFarlane
d321adbabf
CI: Add nix.yml workflow.
...
This is entirely due to @srid.
See #11707 .
2026-07-18 15:59:45 +02:00
dependabot[bot]
e80a34f721
Bump actions/cache from 5 to 6 ( #11737 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-29 11:01:36 +02:00
dependabot[bot]
b7ce1047c6
Bump actions/checkout from 6 to 7 ( #11725 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-23 01:46:07 +02:00
John MacFarlane
593016a5f0
release-candidate: adjust cache dir for cabal store on macos.
2026-06-04 12:53:37 +02:00
John MacFarlane
e984fa7f6c
release-candidate: fix cache path for Windows.
2026-06-04 12:41:58 +02:00
John MacFarlane
efa865e921
release-candidate: print store-dir so we know what to cache.
2026-06-04 12:38:15 +02:00
John MacFarlane
984c8500ed
Add caching for release-candidate build.
2026-06-04 12:02:30 +02:00
John MacFarlane
3598e98b65
CI: remove some cruft from config.
2026-06-04 11:56:57 +02:00
John MacFarlane
07e3253fc2
CI: fix Windows cache dir.
2026-06-04 11:56:45 +02:00
John MacFarlane
9e73edc387
Release candidate: remove wasm build from GH actions.
...
We'll build this on a bigger machine in circleci to avoid
running out of space.
2026-06-04 10:59:34 +02:00
John MacFarlane
4664d5a33c
Release candidate action: try to free more space for wasm build.
...
See https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 .
2026-06-03 22:33:32 +02:00
dependabot[bot]
929597b7c4
Bump actions/upload-artifact from 6 to 7
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-02 11:55:41 +01:00
dependabot[bot]
e440511016
Bump wimpysworld/nothing-but-nix from 9 to 10 ( #11476 )
...
Bumps [wimpysworld/nothing-but-nix](https://github.com/wimpysworld/nothing-but-nix ) from 9 to 10.
- [Release notes](https://github.com/wimpysworld/nothing-but-nix/releases )
- [Commits](https://github.com/wimpysworld/nothing-but-nix/compare/v9...v10 )
---
updated-dependencies:
- dependency-name: wimpysworld/nothing-but-nix
dependency-version: '10'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 13:51:54 +01:00
John MacFarlane
1ff422d1dd
Actions: improve long line check in pr commit validation.
...
We allow long URLs on lines by themselves.
2026-02-14 10:13:43 +01:00