Wolfgang Walther
db16683ba2
ci: Simplify loadtest workflow
...
The two different PR and Merge jobs were introduced to be able to test the main branch
against the latest release. However, this is now included in the PR job, too, so no need
for the two separate jobs anymore.
2024-02-10 20:15:09 +01:00
Wolfgang Walther
8a3b0c60ad
ci: Remove nix actions cache and prepopulate job
...
The nix actions cache currently leads to repeated "no space left on
devices" errors for jobs in CI.
The prepopulate job is useless without the nix actions cache, so it
will go away at the same time.
2024-02-10 12:35:56 +01:00
Wolfgang Walther
066fa8b6aa
ci: Improve cache keys and their restore prefixes
...
The cache key for nix now depends on default.nix and shell.nix in the root folder and all
.patch files in the nix folder. Those may change the output of our nix derivations, so
must be included. At the same time, there is no reason to include the actions/setup-nix
folder. This would only lead to new caches being created every time we update one of the
dependent actions in this file. Finally, we never restore caches with a different id any-
more. There is no point in having the style job fall back to the static cache for example.
The cache keys for cabal can be more explicit: We only have one postgrest.cabal and one
relevant cabal.project file. We were missing the cabal.project.freeze file, though, which
affects the dependencies used, too.
2024-02-09 18:43:53 +01:00
Wolfgang Walther
868913d179
ci: Replace seed cachix workflow with new daemon mode
...
cachix-action v14 added a new daemon mode, which pushes new derivations to the store
as soon as they have been built. This replaces the seed cachix workflow nicely by just
pushing from all jobs directly.
2024-02-06 10:20:02 +01:00
Wolfgang Walther and Wolfgang Walther
9fe0f50709
ci: Add freebsd executable to releases
...
This was temporarily disabled, because of timeouts in Cirrus. This seems to work well again.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
1c02e1e3a0
ci: Prevent creating artifact for dynamic ubuntu build
...
This is not used in the release process anyway, because we are using the static build.
2024-02-06 10:19:31 +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
Andrei Dziahel and Wolfgang Walther
a45058ba02
ci: reuse more previous caches (Nix & Stack)
2024-02-05 21:51:32 +01:00
dependabot[bot] and GitHub
bbc0bda6f5
build(deps): bump LouisBrunner/checks-action from 1.6.2 to 2.0.0 ( #3195 )
2024-01-29 09:35:22 -05:00
dependabot[bot] and GitHub
c1b46ffa1b
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 ( #3196 )
2024-01-29 09:34:33 -05:00
Wolfgang Walther and Wolfgang Walther
43f552dbab
ci: Improve caching for static and dynamic postgrest nix packages
2024-01-26 23:24:12 +01:00
Wolfgang Walther and Wolfgang Walther
c43696c9a6
nix: Move postgrest-check-static inside derivation of static package
...
This will make the static build fail if we're not producing a static binary.
2024-01-26 23:24:12 +01:00
Wolfgang Walther
071a3d436f
ci: Fix Seed-Cachix jobs on linux
2024-01-26 18:10:38 +01:00
Wolfgang Walther and Wolfgang Walther
d75be243ac
ci: Build with GHC 9.8.1 via Cabal
2024-01-25 21:27:17 +01:00
Wolfgang Walther and Wolfgang Walther
2ffb97991d
ci: Build with GHC 9.6.4 via Cabal
...
This confirms that building with GHC 9.6.x works already, even if we can't
switch to it for the nix and stack builds, yet.
2024-01-25 21:27:17 +01:00
Andrei Dziahel and Wolfgang Walther
d7246b4851
ci: nix-store --realise to tools:
...
Since we're building only tools now, we can just specify them directly
in the `tools:` parameter of `setup-nix` action.
2024-01-22 18:17:38 +01:00
Andrei Dziahel and Wolfgang Walther
286103daf2
ci: do not rebuild postgrest
...
specify outputs to cache excluding postgrest
2024-01-22 18:17:38 +01:00
dependabot[bot] and GitHub
02312804f0
build(deps): bump actions/cache from 3 to 4 ( #3179 )
2024-01-22 09:13:30 -05:00
Wolfgang Walther and Wolfgang Walther
6682baebd2
nix: Update nixpkgs and build with GHC 9.4.8
2024-01-18 18:54:33 +01:00
dependabot[bot] and GitHub
93bdae962e
build(deps): bump actions/upload-artifact from 3 to 4 ( #3123 )
2023-12-18 09:09:18 -05:00
dependabot[bot] and GitHub
6a34018cfc
build(deps): bump dawidd6/action-download-artifact from 2 to 3 ( #3122 )
2023-12-18 09:09:10 -05:00
dependabot[bot] and GitHub
2aa5373a27
build(deps): bump actions/download-artifact from 3 to 4 ( #3121 )
2023-12-18 09:09:02 -05:00
Andrei Dziahel and Steve Chavez
41ea4e6db6
ci: cancel in-progress loadtests for PRs as well
2023-12-07 16:01:32 -05:00
Andrei Dziahel and Steve Chavez
f9294c5e43
ci: test only head of branch
2023-12-07 16:01:32 -05:00
Andrei Dziahel and GitHub
72083361bc
ci: similar jobs use a single cache for Nix stores
...
Jobs that use the setup-nix action will share a single cache, which is created by a previous warm up Job.
2023-12-05 13:57:18 -05:00
Andrei Dziahel and Steve Chavez
31ce39ba36
ci: cabal+GHC: tweak caching
...
Makes it to cache only relevant directories, adds `dist-newstyle` to prevent needless rebuilding even harder and shortens cache key name by supplying `hashFiles`multiple arguments
2023-11-28 12:48:57 -05:00
Andrei Dziahel and Steve Chavez
a72241ad4e
ci: fixes job caches not producing after recent cabal upgrade
...
Recent cabal adopted XDG guidelines and stores data
across multiple directories under $HOME.
Creating ~/.cabal manually returns old behavior and allows caching single directory again.
2023-11-28 11:52:52 -05:00
Andrei Dziahel and GitHub
abcb21c69a
ci: cache Nix store with cache-nix-action ( #2992 )
...
* ci: try nix-community/cache-nix-action
* ci: add cache-id param to setup-nix action
* ci: tidy up cache keys for non-nix jobs
* ci: merge-nix-caches-linux job
* ci: merge caches other way around
* ci: reduce number of caches
Should prevent disk overflow
* ci: change cache id prefix for merge
* ci: comment out cache merging job
* ci: revert cache id prefix
* ci: setup-nix: use latest cache-nix-action
Among others, makes action logs look more tidy (see https://github.com/nix-community/cache-nix-action/commit/17d19d3d8be918757589635bc1a6830be0b129d2 )
* ci: use test-pg cache key for loadtest
2023-11-21 18:56:23 -05:00
Laurence Isla and Steve Chavez
90e3a5e29f
Add test option for PostgreSQL 16
2023-09-21 15:38:46 -03:00
Andrei Dziahel and Steve Chavez
add4dfeed5
ci: loadtest PRs against latest releases
...
Leveraging the previously-improved postgrest-loadtest-against
introduces loadtesting PRS against latest release as well.
2023-09-21 14:08:53 -03:00
Andrei Dziahel and Steve Chavez
c3169b7dc2
ci: less strict conditions for loadtest inmain
2023-09-15 16:35:20 -03:00
Andrei Dziahel and Steve Chavez
30474c424c
ci: loadtest commits to main against latest release
...
Introduces loadtest job for main branch
that runs loadtest against latest release
2023-09-14 17:10:48 -03:00
dependabot[bot] and GitHub
2358b6670f
build(deps): bump actions/checkout from 3 to 4 ( #2936 )
2023-09-11 02:34:35 -03:00
dependabot[bot] and GitHub
0dc67bed0b
build(deps): bump LouisBrunner/checks-action from 1.6.1 to 1.6.2 ( #2883 )
2023-07-31 00:17:36 -05:00
Laurence Isla and GitHub
83cf15fb7e
ci: specify GHC_VERSION for ARM build on CI config
...
* change cabal version from recommended to latest
2023-06-21 16:54:15 -05:00
steve-chavez
d9261fa674
ci: check against GHC 9.0.2
2023-06-21 16:22:30 -05:00
dependabot[bot] and GitHub
11a9849152
build(deps): bump LouisBrunner/checks-action from 1.6.0 to 1.6.1 ( #2817 )
2023-06-12 10:34:48 -05:00
dependabot[bot] and GitHub
54cbf147e3
build(deps): bump codecov/codecov-action from 3.1.3 to 3.1.4 ( #2794 )
2023-05-22 11:34:18 -05:00
dependabot[bot] and GitHub
3b55a27ef3
build(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3 ( #2765 )
2023-04-24 11:21:49 -05:00
dependabot[bot] and GitHub
43da81c30c
build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2 ( #2757 )
2023-04-18 12:25:50 -05:00
Laurence Isla and GitHub
ad7d80a430
ci: clean files from arm server only on build failure/cancel for a version release
2023-04-13 16:29:26 -05:00
steve-chavez
e572d1d1a2
feat: configurable role settings
2023-04-10 14:27:08 -05:00
Wolfgang Walther
1442e02f5f
chore: Allow seed-cachix job to keep running when part of the matrix fail
2023-04-04 18:52:52 +02:00
dependabot[bot] and Steve Chavez
ba00cb98f4
build(deps): bump actions/upload-artifact from 2.3.1 to 3.1.2
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2.3.1 to 3.1.2.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.3.1...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-27 12:00:46 -05:00
dependabot[bot] and Steve Chavez
6184921edc
build(deps): bump actions/checkout from 2.4.0 to 3.3.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.4.0 to 3.3.0.
- [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.4.0...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 >
2023-02-27 10:59:38 -05:00
steve-chavez
253f2bf537
ci: remove GHC 8.10.7
2023-02-25 14:19:52 -05:00
steve-chavez
a9d66d1dac
ci: fix ghcup
2023-02-09 16:46:27 -05:00
dependabot[bot] and Steve Chavez
ecada119f8
build(deps): bump LouisBrunner/checks-action from 1.5.0 to 1.6.0
...
Bumps [LouisBrunner/checks-action](https://github.com/LouisBrunner/checks-action ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/LouisBrunner/checks-action/releases )
- [Commits](https://github.com/LouisBrunner/checks-action/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: LouisBrunner/checks-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-06 09:21:31 -05:00
Robert and GitHub
8f80cd1469
Update nixpkgs, dependencies ( #2612 )
...
* relax upper bounds on HTTP, hspec, lens-aeson, optparse-applicative (fixes #2580 )
* upgrade stackage snapshot to latest LTS, with GHC 9.2.5
* bump nixpkgs to 2023-01-12
* fix complaints due to updated linters
2023-01-16 17:12:54 +01:00
Robert and GitHub
5fd6b3956e
ci: Add workflow to seed cachix ( #2615 )
...
Fixes #2609 .
2023-01-16 16:56:48 +01:00