Commit Graph

52 Commits

Author SHA1 Message Date
Richard Marko
9ff2d042fa CI: invalidate caches
https://github.com/actions/cache/issues/2
2022-04-22 13:04:25 +02:00
dependabot[bot]
eb27c033d3 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)

---
updated-dependencies:
- dependency-name: haskell/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-22 13:00:06 +02:00
dependabot[bot]
e31e36c481 Bump cachix/install-nix-action from 16 to 17
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
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>
2022-04-22 13:00:00 +02:00
dependabot[bot]
0756b1f9e3
Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 05:19:54 +00:00
dependabot[bot]
6ec5516d47
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 05:27:53 +00:00
Anton-Latukha
6ad7f3eac8
CI: Cabal-Linux: {relude,hashing,ghc-bignum} => allow 8.8 to continue 2022-01-06 13:53:10 +02:00
Anton-Latukha
343dc3079a
CI: Cabal-Linux: freeze: report minimized conflict set 2022-01-06 13:38:03 +02:00
Anton-Latukha
45383f8215
dep: support 'hashable 1.4' 2022-01-06 13:37:51 +02:00
dependabot[bot]
3f12d31aef Bump cachix/install-nix-action from 15 to 16
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v16)

---
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>
2021-11-22 10:18:49 +02:00
dependabot[bot]
4321e7d656 Bump cachix/install-nix-action from 14.1 to 15
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 14.1 to 15.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v14.1...v15)

---
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>
2021-11-15 17:45:16 +02:00
Anton-Latukha
49acc33447 CI: Optional-Nix-dev-env-main: pin rev
`default.nix` pin does not work because `build.sh` overrides it to `default`.
2021-11-14 23:22:13 +02:00
dependabot[bot]
5ba249c3f0 Bump cachix/install-nix-action from 12 to 14.1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 12 to 14.1.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...v14.1)

---
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>
2021-11-02 13:33:22 +02:00
Anton-Latukha
34bd9107e2 add dependabot: make it update GitHub Actions
It is a basic configuration.
2021-11-02 13:31:43 +02:00
Anton-Latukha
3dcd0562f4
CI: GitHyb: add HLint 2021-07-27 02:05:01 +03:00
Anton-Latukha
2b23c67c31
add GHC 9.0 support 2021-07-08 00:41:05 +03:00
Anton-Latukha
51b89db727
CI: rm auto TOC update
GitHub rolled-out the TOC generation.
2021-05-07 16:30:09 +03:00
Anton-Latukha
73f7d56d09
CI: Nix-dev-env: cachix-action@v(7->10) 2021-05-07 12:16:34 +03:00
Anton-Latukha
5246db5832
CI: Nix-dev-env: Nixpkgs has GHC 8.10 as default
CI is currently in this way, since we still are restricted by dependencies to move to GHC 9.0.
2021-05-07 12:12:59 +03:00
Anton Latukha
58cd8fa112
treewide: light relude linting (#906)
* treewide: light relude linting

Provided `relude's` `.hlint.yaml` locally.

To my taste most of the suggestions are specific to `relude` and can be
considered harmful for future portability.

Only the `(fmap . fmap) == <<$>>` & `*.singleton == one`, I'd considered
somewhat reasonable to maybe thinnk about adopting.

The flip of the arguments in `whenJust` and so on - surprised me.

These here are what indeed is light and helps to clean-up a bit and in future
text data types & list migrations.

Most of the `relude` HLint rules I saw, I want to remove from the checks. So decisively not going to implement them
in CI.

* default.nix: upd default to GHC8104
2021-03-26 21:10:41 +02:00
Guillaume Maudoux
d6b8c5a7f9 revert "CI: Nix dev env: GHC 8.10: disable strict build"
This reverts commit cd02c6dd59.
2021-03-23 23:07:26 +01:00
Anton-Latukha
cd02c6dd59
CI: Nix dev env: GHC 8.10: disable strict build
Please, enable it back after https://github.com/haskell-nix/hnix/issues/896 closes.
2021-03-21 18:32:17 +02:00
Anton-Latukha
919e8ecadb
cabal: stopping GHC 8.4 support
https://github.com/haskell-nix/hnix/issues/885
2021-03-15 20:27:30 +02:00
Anton Latukha
c357b63dee
upd {rev, hnix-store 0.4.1.0, Nix GHC 8.10 strict} (#835)
System.Nix.Store.Remote now reexports Remote.Types
🔼 allowed at once to enable strict builds to not forget them further.
2021-01-26 13:49:58 +02:00
Anton Latukha
f71ef94a32
CI: upd ReadMe TOC workflow (#832)
* CI: upd On-Readme-update: README->ReadMe

* CI: remane On-Read(m->M)-update.yml
2021-01-21 14:42:57 +02:00
Anton-Latukha
eb709ccb4a CI: Nix-dev-env-macOS: demoting to weekly build&check
The Haskell project development should not be blocked by the Nixpkgs macOS build
failures.
Already introduced more basic Hackage Cabal macOS check.
2021-01-15 17:55:23 +02:00
Anton-Latukha
dd2cb2bd80 CI: add Cabal-macOS built test
This is basic requirement for developing on macOS.
2021-01-15 17:55:23 +02:00
Anton Latukha
a3b95b2862
CI: GitHub: Nix: dontCheck (#807)
The Cabal testing is really enough.

Maybe form a network test switch and disable those tests when the variable is
set. So we configure that in the CI and in Nixpkgs.
2021-01-07 22:27:56 +02:00
Anton-Latukha
0b81cb6918
CI: GitHub: Cabal: add Haddock add distribution check 2021-01-06 04:42:27 +02:00
Anton-Latukha
099bf20aa3
CI: GitHub: Cabal: add Haddock check 2021-01-06 04:42:27 +02:00
Anton-Latukha
3b313a7e19
CI: GitHub: Cabal: improvement of the GitHub caching
A riff on the theme of
https://markkarpov.com/post/github-actions-for-haskell-ci.html
2021-01-06 04:41:57 +02:00
Anton-Latukha
3e0417c02f default.nix: m upd rev & compiler 2021-01-06 00:45:01 +02:00
Anton Latukha
f4ef25b6a3
CI: GitHub: Nix: make GHC 8.8 nonstrict (#782)
For quite some time 8.8 strict build fails:
```
src/Nix/Expr/Types.hs:179:10: error: [-Wmissing-methods, -Werror=missing-methods]
    • No explicit implementation for
        ‘liftTyped’
    • In the instance declaration for ‘Lift (Fix NExprF)’
    |
179 | instance Lift (Fix NExprF) where
    |          ^^^^^^^^^^^^^^^^^
```

`nomissing-methods` seems like a bad path in this case and module.

I tried to address the issue and so far not constructed the implementation.

Too bad that the issue creeped-up backwards. Strict builds worked until this one
cropped-in.

So lowering the CI strictness until this gets resolved. Opened #783 #784 for that.
2020-12-29 18:01:56 +02:00
Anton Latukha
a44e20ab55
CI: GitHub: *Cabal-Linux: migrate to official action (#773)
Old GH one become unmaintained (yesterday - officially), and the official
successor fork is in `haskell` group.
2020-12-13 12:52:26 +02:00
Anton-Latukha
52f39938c0
CI: GitHub: workflow: add project Nixpkgs-integration test 2020-12-02 23:30:00 +02:00
Anton-Latukha
106dbf3b63
CI: GitHub: style clean-up
M  .github/workflows/Cabal-Linux.yml
M  .github/workflows/On-Readme-update.yml
M  .github/workflows/On-Release-Cabal-Linux.yml
M  .github/workflows/Optional-Nix-dev-env-macOS.yml
M  .github/workflows/Optional-Nix-dev-env-main.yml
2020-12-02 22:31:09 +02:00
Joe Hermaszewski
c0f5b691d1 Bump install-haskell cachix-action and install-nix-action
Closes https://github.com/haskell-nix/hnix/issues/758

install-nix-action requires an explicit `nix_path` now, do not set this
when it is just used to install nix-instantiate for tests
2020-11-17 15:31:27 +08:00
Anton-Latukha
c8c9990d9e
CI: GitHub: Nix-dev-env-{main,macOS}: rm Nixpkgs channel from names 2020-09-30 19:14:45 +03:00
Anton-Latukha
85710682e7
CI: Nix-dev-env-main: strict build: explicitly state the compiler
Further the switch to 8.10.1 arrives.

Under 8.10.1 HNix currently can not be built strictly.

This build is strict, so it is bounded to 8.8 currently. Which is a Nixpkgs default.
2020-09-29 23:19:57 +03:00
Anton-Latukha
245594db87
CI: Nix-dev-env-{main,macOS}: pin Nixpkgs rev
To avoid contribution loop problems, since we pin Nixpkgs in default.nix - it is
logical by default CI to follow the supported way of building.

The downside is - the maintainer would need to solve Nix issus when one tries to
update the Nixpkgs revision.
2020-09-29 23:16:17 +03:00
Anton-Latukha
0716f31574
CI: GitCub: add On-Readme-update: add automatic TOC generation 2020-09-29 17:55:48 +03:00
Anton-Latukha
a613ceb6a5 CI: On-Release-Cabal-Linux: fx 'on/release/created' type
Only on merge to `master` CI checked that YAML does not typecheck for it, so
fixing it posteriorly.
2020-09-12 11:59:38 +03:00
Anton-Latukha
f2c5f07b15
CI: GitHub: mv (->Optional-)Nix-dev-env-macOS 2020-09-10 18:35:27 +03:00
Anton-Latukha
b1fbc25963
CI: GitHub: mv (Nixpkgs-Linux-main -> Optional-Nix-dev-env-main)
Underlining that Nixpkgs are currently optional.
2020-09-10 18:35:23 +03:00
Anton-Latukha
c2e696e86f
CI: GitHub: Cabal-Linux: rm middle GHCs tests in favour release test 2020-09-10 18:04:54 +03:00
Anton-Latukha
10ae6f031e
CI: GitHub: add On-Release-Cabal-Linux
CI build that is triggered on release creation.

A  .github/workflows/On-Release-Cabal-Linux.yml
2020-09-10 18:04:47 +03:00
Anton-Latukha
2d78d84630
CI: GitHub: rm Nixpkgs-Linux-additional
Removing optional informational sake tests.

GHC version Cabal Hackage tests were added
2020-09-10 17:49:49 +03:00
Anton-Latukha
12d108d394
CI: GitHub: Cabal-Linux: test all GHCs
M  .github/workflows/Cabal-Linux.yml
2020-09-10 17:49:49 +03:00
Simon Jakobi
4cd3aa0e17
Remove broken "NixOS 20.03 stable channel, default GHC (8.8)" CI job (#704)
Fixes #700.
2020-09-02 21:07:24 +02:00
Anton-Latukha
0449dc4570 Merge update from haskell-with-nixpkgs
* "rev" "default" tracks local default Nixpkgs channel.

* "compiler" "default" tracks default Nixpkgs GHC compiler.

* Properly providing secret to the GitHub CI workflows.

* Clean-up.

* Project freed form reliance on Travis CI.

* Removing unmaintained GHCJS build, in favor for the further move to Haskell to WebAssembly compilation.

---

In terms of the fish shell the rebase merge is done in this way:

```fish
set -l tmpDir "$HOME/src/tmp"
set -l sourceDir 'haskell-with-nixpkgs'
set -l sourceUrl "git@github.com:haskell-nix/$sourceDir.git"
set -l masterDir 'hnix'
set -l masterUrl "git@github.com:haskell-nix/$masterDir.git"
set -l fileList \
default.nix \
build.sh \
ghcjs-build.sh \
Cabal-Linux.yml \
Nixpkgs-GHCJS.yml \
Nixpkgs-Linux-additional.yml \
Nixpkgs-Linux-maim.yml \
Nixpkgs-macOS.yml
mkdir -p "$tmpDir"
rm -rf "$tmpDir/$sourceDir"
rm -rf "$tmpDir/$masterDir"
cd "$tmpDir"
git clone "$sourceUrl" "$sourceDir"
cd "$sourceDir"
git-pass-filter $fileList
cd "$tmpDir"
git clone "$masterUrl" "$masterDir"
cd "$masterDir"
git checkout -b upd-from-"$sourceDir"
git remote add hn "$tmpDir/$sourceDir"
git fetch hn master
git merge -S --allow-unrelated-histories hn/master
```

---

```log
10 files changed, 42 insertions(+), 401 deletions(-)
.github/workflows/Cabal-Linux.yml              |   4 -
.github/workflows/Nixpkgs-Linux-main.yml       |  12 +-
.github/workflows/Nixpkgs-Linux-additional.yml |   4 +-
.github/workflows/Nixpkgs-macOS.yml            |   5 +-
default.nix                                    |  33 +++--
build.sh                                       |  97 ++-------------
.github/workflows/Nixpkgs-GHCJS-turned-off     |  45 -------
ghcjs/nix.conf                                 |   2 -
ghcjs/default.nix                              |  79 ------------
.travis.yml                                    | 162 -------------------------
```
2020-08-18 10:13:36 +03:00
Anton-Latukha
c83bbbe587 CI: Cabal-Linux: add caching 2020-08-17 13:22:51 +03:00