Wolfgang Walther and Wolfgang Walther
279febe26b
ci: Split cabal and stack work caches from regular cache
...
This is a first step to split up the cabal and stack caches in separate
pieces. Here we split the work folder, which just contains the
postgrest-specific build artifacts, into a separate cache.
More fine-grained caching should give us better cache hits and much
fewer upload size in the regular case, improving CI performance.
Since the work file caches are very small (about 30-40 MB) they are
cached for PRs, too. This will allow the majority of PRs, which only
change source code files, but no dependencies, to still have cached
their build files for additional commits.
2024-05-20 15:43:00 +02:00
Wolfgang Walther and Wolfgang Walther
923a271105
chore(deps): Update stackage snapshot to lts-22.20
...
The freebsd build is kept at 21.7 / GHC 9.4.5, because no newer GHC
versioin is supported here.
2024-05-13 08:08:18 +02:00
Wolfgang Walther
1ca2d1f8be
ci: Refactor get_cirrusci_freebsd script to GitHub action
...
This should make it more reliable and also easier to re-use, if we need
to.
Resolves #2555
2024-05-04 14:56:57 +02:00
Wolfgang Walther
5aa62d944d
ci: Force running FreeBSD build in tag and push pipelines
...
This now behaves similar to other CI build jobs, which always run on the
main branches, but only conditionally on PRs, depending on which files
changed.
2024-05-04 14:56:57 +02:00
Wolfgang Walther and Wolfgang Walther
29ffb9329b
ci: Build on FreeBSD only when build workflow runs
...
This prevents running the freebsd build when only tests or docs change.
2024-02-29 21:27:05 +01:00
Wolfgang Walther and Wolfgang Walther
2c2513b9cd
deps: Use libpq v16 for freebsd build
2024-02-24 13:46:05 +01:00
Wolfgang Walther and Wolfgang Walther
0eca2954b3
ci: Reduce file size of cabal and stack based builds
...
By passing -split-sections to all dependencies, GHC will link only the
modules we actually use and not the full package for each dependency.
This does neither work on MacOS nor Windows, thus we don't do it for
stack right now.
Stripping unused symbols in CI will further decrease the size of those files.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
3a639c7172
ci: Fix FreeBSD build on cirrus
2024-01-25 21:27:17 +01:00
Robert Vollmert
8e96e3b3ae
ci: install git for cirrus to allow git repo dependencies
2022-08-29 14:55:09 +02:00
Robert Vollmert
1eda7db0fb
stack: build with latest LTS release, GHC 9.0
...
Also bump FreeBSD release.
2022-07-09 02:30:53 +02:00
monacoremo
82dd1b732d
ci: disable cirrusci stack work cache which seems to create issues
2021-11-12 20:25:22 +01:00
Remo
0ba133a0bd
ci: Fix FreeBSD build
2021-09-08 19:11:00 +02:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +02:00
steve-chavez
1759c1c75b
Update CirrusCI encrypted var
2021-06-22 20:10:43 -05:00
Wolfgang Walther and Wolfgang Walther
cd09cc6c52
ci: fix cirrus build timeout
2021-04-14 00:13:08 +02:00
Boris Korzun and Steve Chavez
9f074cecce
cirrusci: update FreeBSD pkg
2021-03-26 10:13:38 -05:00
Robert Vollmert and Steve Chavez
a7dab6d95a
cirrusci: update to FreeBSD 12.2
...
This fixes CI failure because FreeBSD 12.1 became EOL in Jan 2021
(3 months after release of 12.2): https://www.freebsd.org/security/#sup
2021-02-27 13:26:02 -05:00
Wolfgang Walther
ab3375998d
ci: fix cirrus low memory error
2020-12-06 20:49:48 +01:00
steve-chavez
9adec12a67
cirrusci: add build timeout
2020-11-23 19:00:50 -05:00
steve-chavez
3830887577
ci: add nightly version to cabal file
2020-11-10 22:47:58 -05:00
steve-chavez
b6d8d89b32
ci: add git sha with hours/minutes to nightly
2020-11-10 22:47:58 -05:00
steve-chavez
814da058ec
cirrusci: add nightly release
2020-11-10 22:47:58 -05:00
Wolfgang Walther and Steve Chavez
29858b8d0d
improve cirrus build time by properly using cabal cache
2020-10-14 22:25:42 -05:00
steve-chavez
222a53015e
Fix Dockerfile
...
Remove libpq5 dependency since static bin already contains it.
2020-05-18 16:50:53 -05:00
steve-chavez
6c4208d9e7
cirrusci: add binary artifact
2020-05-18 13:05:09 -05:00
steve-chavez
6fae07241f
Add FreeBSD CI
2020-05-08 15:11:44 -05:00