Tomas Janousek
93ad0ef2ea
ci: Adopt the liskin/gh-workflow-keepalive action
...
This avoids hardcoding the workflow filename and thus makes
refactoring/renaming less error-prone.
2024-02-15 11:02:26 +00:00
dependabot[bot]
f3ee6289ec
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [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/v3...v4 )
2024-01-22 11:55:52 +00:00
github-actions[bot]
39310a6695
ci: Regenerate haskell-ci
2024-01-17 11:28:14 +00:00
dependabot[bot]
2272691ada
build(deps): bump cachix/install-nix-action from 24 to 25
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 16:37:58 +00:00
github-actions[bot]
34d55ede85
ci: Regenerate haskell-ci
2023-12-09 03:13:33 +00:00
dependabot[bot]
7ce7ddf9e6
build(deps): bump cachix/install-nix-action from 23 to 24
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 16:51:51 +00:00
github-actions[bot]
ff8d4ebb94
ci: Regenerate haskell-ci
2023-11-18 03:15:29 +00:00
Tomas Janousek
192c0da831
ci: Only build haddock for hackage with the latest GHC
...
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so
we need to work around it by bumping the version of GHC/Haddock we use
for building/uploading docs to Hackage, and to prevent build failures we
don't ever try to build haddocks for Hackage with older versions of
GHC/Haddock.
Related: https://github.com/haskell/haddock/issues/1582#issuecomment-1611412223
Related: https://github.com/haskell/cabal/issues/8326
Related: https://github.com/haskell/cabal/issues/9060
Related: https://github.com/haskell/cabal/pull/9073
Related: https://github.com/haskell/cabal/pull/9049
2023-11-12 23:58:14 +00:00
github-actions[bot]
e38e19edc1
ci: Regenerate haskell-ci
2023-11-11 03:20:02 +00:00
github-actions[bot]
487b6d1677
ci: Regenerate haskell-ci
2023-10-28 11:44:37 +02:00
Tomas Janousek
ac9265e774
ci: Replace deprecated haskell/actions/hlint-*
...
See https://github.com/haskell/actions/pull/301#issuecomment-1722353522
2023-09-18 15:42:25 +01:00
Tomas Janousek
c9a096ac1f
ci: Replace deprecated haskell/actions/setup
...
See https://github.com/haskell/actions/pull/301 and
https://github.com/haskell/actions/pull/301/files
2023-09-17 23:17:05 +01:00
dependabot[bot]
51ba23b776
build(deps): bump actions/checkout from 3 to 4 (except haskell-ci workflow)
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [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/v3...v4 )
2023-09-17 21:22:45 +01:00
Tomas Janousek
b358c90a73
ci: Drop unnecessary cmd from "Install packdeps"
...
Not needed since https://github.com/haskell/actions/pull/165 (Jan 2023).
2023-09-17 21:21:18 +01:00
dependabot[bot]
63a758243a
build(deps): bump cachix/install-nix-action from 22 to 23
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 16:50:28 +00:00
Tony Zorman
34b544b7a1
ci/cabal: Bump GHC versions
2023-07-16 17:27:16 +02:00
Tony Zorman
5b5a51787c
ci/stack: Add lts-21 resolver
2023-07-16 17:26:49 +02:00
dependabot[bot]
f2ac181616
build(deps): bump cachix/install-nix-action from 21 to 22
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 17:00:04 +00:00
dependabot[bot]
611317f398
build(deps): bump cachix/install-nix-action from 20 to 21
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 16:59:34 +00:00
Tony Zorman
1d84db959c
ci: Bump 9.2 and 9.4 minor versions
...
The stack CI already tests against 9.2.7 instead of 9.2.5 (as the cabal
file said), since we just specify the major version of the LTS resolver,
and lts-20 is up to 9.2.7 by now. Not much has changed since 9.2.5, but
update the haskell-ci workflow regardless. Likewise, 9.4 can be bumped
one minor version, so do that as well.
2023-03-31 07:48:02 +02:00
Tony Zorman
635711e994
ci: Test against GHC 9.6.1
...
+ Regenerate haskell-ci and adjust relevant patches.
- Remove haskell-ci-dependabot.patch, as it is no longer necessary.
Related: https://github.com/xmonad/xmonad-contrib/issues/805
2023-03-28 07:53:09 +02:00
dependabot[bot]
49edaf37fd
build(deps): bump cachix/install-nix-action from 19 to 20
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 17:08:28 +00:00
dependabot[bot]
726e887239
build(deps): bump cachix/install-nix-action from 18 to 19
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 20:48:12 +00:00
Tomas Janousek
e2ffa533da
ci: Unpin runner in hlint workflow; bump hlint to 3.5
...
hlint 3.5 is built against libtinfo6 and works on Ubuntu 22.04 without
needing to install libtinfo5.
Fixes: b7afb0c0bc3f ("ci: Pin runner in hlint, nix workflows to ubuntu-20.04")
2023-01-02 20:45:19 +01:00
Tomas Janousek
04c0ddd3e0
ci: Cabal install packdeps outside of project dir
...
Invoking cabal in the project directory with a cabal.project file might
fail on unrelated dependencies missing, see
4f539734be
Doesn't fail in this repo, but let's keep the workflows in sync.
2022-12-03 13:15:48 +00:00
Tomas Janousek
b7afb0c0bc
ci: Pin runner in hlint, nix workflows to ubuntu-20.04
...
Both are now broken with ubuntu-22.04. Nix:
error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
hlint:
/opt/hostedtoolcache/hlint/3.4.1/x64/hlint: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
2022-12-01 12:09:25 +00:00
Tomas Janousek
18eca4e8d6
ci: Drop ppa:hvr/ghc
...
Breaks `apt update` on the ubuntu-22.04 runner, which is what
ubuntu-latest resolves to these days.
Fixes: 7312d6f3f3f7 ("ci: Drop GHC installation via apt")
2022-12-01 12:06:17 +00:00
dependabot[bot]
797fd24112
build(deps): bump haskell/actions from 1 to 2
...
Bumps [haskell/actions](https://github.com/haskell/actions ) from 1 to 2.
- [Release notes](https://github.com/haskell/actions/releases )
- [Commits](https://github.com/haskell/actions/compare/v1...v2 )
2022-11-27 17:42:25 +00:00
Tomáš Janoušek
cf0e3531f9
ci: Configure dependabot to keep GH Actions up to date
2022-11-27 17:42:25 +00:00
Tomas Janousek
8cd09601b1
ci: Bump actions/* to v3 in haskell-ci workflow
...
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-27 17:42:25 +00:00
Tomas Janousek
0bd43c072f
ci: Update to GHC 9.4.3
2022-11-27 17:42:25 +00:00
Tony Zorman
5d0013ef53
ci: Drop support for GHC 8.4
...
Debian stable and Ubuntu 20.04 are now 8.8 and 8.6, respectively, which
was always our guide as to which GHC versions we want to support.
2022-11-20 16:53:06 +01:00
Tony Zorman
0f69215fc8
ci: Update to GHC 9.2.5
...
+ A new stackage LTS is out with GHC 9.2.5, so test for this.
+ Update the haskell-ci jobs accordingly from 9.2.4.
2022-11-19 09:18:35 +01:00
Tomas Janousek
6880417911
ci: Fix docs tarball
...
haskell-ci by default passes --haddock-all to cabal v2-haddock, which
builds docs for all components and the …-docs.tar.gz tarball ends up
containing the docs for the last component, which happens to be tests.
We need the tarball to contain the library docs, for upload to Hackage.
Fixes: 7cee1915169d ("CI: Remove hlint from haskell-ci")
2022-10-30 23:01:41 +00:00
Tomas Janousek
4242fa02a0
ci: Add GHC 9.4 to tested-with matrix (haskell-ci workflow)
...
(Also bump 9.2 to 9.2.4)
2022-10-30 21:37:23 +00:00
Tomas Janousek
f81b9fb725
ci: Bump cachix/install-nix-action to v18
...
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 21:24:46 +00:00
Tomas Janousek
b0b8e4fb2c
ci: Bump actions/{checkout,cache} to v3
...
This gets rid of the deprecation warnings about
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 21:20:21 +00:00
Tomas Janousek
7312d6f3f3
ci: Drop GHC installation via apt
...
The apt repo hosting these packages has been unmaintained for quite a
while, and we've excluded ~/.stack/programs from the cache long time
ago, so we can just let stack handle the installation. It's not much
slower than installing via apt, and even if it was, some matrix jobs
need to use the slow path anyway.
Related: 9fce3805fcf2 ("ci: Use system GHC in Stack to not waste GH Actions cache space")
Related: 7d10e470d71d ("ci: Avoid caching GHC")
2022-10-30 21:19:16 +00:00
Tomas Janousek
b75ed7295c
ci: Replace deprecated GHA set-output command
...
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-30 21:11:20 +00:00
Tony Zorman
7cee191516
CI: Remove hlint from haskell-ci
...
As we have a proper hlint action now, this is no longer needed.
2022-10-25 08:49:23 +02:00
Tony Zorman
dd26fcc3f1
CI: Add hlint workflow
...
Closes: https://github.com/xmonad/xmonad-contrib/issues/669
2022-10-25 08:49:23 +02:00
Tomas Janousek
0d5a952035
ci: Prevent scheduled workflows from being auto-disabled by GitHub
2022-06-19 17:14:24 +01:00
Tomas Janousek
154388aa20
ci: Drop hlint -XCPP workaround
...
https://github.com/ndmitchell/hlint/issues/1360 is fixed and the fix
released.
2022-05-01 23:25:08 +01:00
Tomas Janousek
0e106ccfbe
ci: Discard old caches to fix build failures
...
We're getting "undefined reference" errors during linking, suggesting
some build artifacts in the cache are stale and need to be rebuilt.
2022-04-18 23:39:01 +02:00
slotThe
e3ffbf63f6
ci: Update supported GHC versions
...
+ Prefer GHC 8.10.7 to 8.10.4, as versions seem to have stabilised now.
+ Add support for Stackage LTS 19, which ships with GHC 9.0.2.
+ Since a new version of 9.2 has been released, prefer 9.2.2 over 9.2.1.
Also, explicitly pass -XCPP to hlint; see [1].
[1]: https://github.com/ndmitchell/hlint/issues/1360
2022-04-05 12:18:12 +01:00
Tomas Janousek
7807eb1be0
ci: Show error body from Hackage when it fails
...
Prevents having to upload the candidate manually to see what's wrong.
2021-11-08 18:18:09 +00:00
Tomas Janousek
b40b672288
ci: Swap candidate/final release logic
...
During the release of xmonad 0.17.0, I realized that we need to be able
to upload candidates before tagging the release on GitHub, because there
might be issues with the tarball and Hackage may reject it. When that
happened, I had to remove the release, delete the tag, upload the
candidate manually to see what's wrong with it, try to fix it, upload it
manually again, and so on.
This commit swaps the logic: when the workflow is invoked manually, it
uploads the candidate. This can be done multiple times, and once
everything is fine, the release can finally be tagged and it's released
to Hackage proper. The only disadvantage is that we need to remember to
try uploading the candidate. Not sure if there's a perfect solution…
2021-11-08 18:17:36 +00:00
Tomas Janousek
d67df574cf
ci: Run hlint with 9.0.1, not 9.2.1
...
cabal-3.6.2.0: Could not resolve dependencies:
[__0] trying: hlint-3.3.4 (user goal)
[__1] next goal: ghc-lib-parser (dependency of hlint +/-ghc-lib)
[__1] rejecting: ghc-lib-parser-9.2.1.20211030 (conflict: hlint +/-ghc-lib =>
ghc-lib-parser>=9.0 && <9.1)
[__1] trying: ghc-lib-parser-9.0.1.20210324
[__2] next goal: base (dependency of hlint)
[__2] rejecting: base-4.16.0.0/installed-4.16.0.0 (conflict: ghc-lib-parser =>
base>=4.13 && <4.16)
[__2] skipping: base-4.16.0.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=4.13 && <4.16' from
'ghc-lib-parser')
[__2] rejecting: base-4.15.0.0, base-4.14.3.0, base-4.14.2.0, base-4.14.1.0,
base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from non-upgradeable package requires installed instance)
[__2] fail (backjumping, conflict set: base, ghc-lib-parser, hlint)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: hlint (536), ghc-lib-parser (335),
base (219)
2021-11-05 10:14:20 +00:00
Tomas Janousek
4b4f7f2dd6
ci: Test against GHC 9.2
2021-11-05 10:14:20 +00:00
Tomas Janousek
8623c29dd5
ci: Update haskell-ci
2021-11-05 10:14:20 +00:00