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
Andrei Dziahel and Wolfgang Walther
411cf430ad
ci: revert cache-nix-action to v4
...
Upgrading c-n-action seems to break restoring Nix store rendering the cache useless (nix-community/cache-nix-action#27 ). This rolls the change back.
2024-01-26 18:40:45 +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
Andrei Dziahel and Steve Chavez
9c78751871
ci: fix c-n-a input names
2024-01-22 11:28:41 -05:00
dependabot[bot] and Steve Chavez
820917bcb6
build(deps): bump nix-community/cache-nix-action
...
Bumps [nix-community/cache-nix-action](https://github.com/nix-community/cache-nix-action ) from 4.0.3 to 5.0.1.
- [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/v4.0.3...v5.0.1 )
---
updated-dependencies:
- dependency-name: nix-community/cache-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 11:28:41 -05: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
Steve Chavez and GitHub
c070cb9502
Revert "build(deps): bump nix-community/cache-nix-action from 4.0.3 to 5.0.1 in /.github/actions/setup-nix" ( #3167 )
2024-01-17 17:55:38 -05:00
dependabot[bot] and GitHub
a8165a89a0
build(deps): bump nix-community/cache-nix-action ( #3135 )
2024-01-17 17:25:10 -05:00
dependabot[bot] and GitHub
740fcdf5ab
build(deps): bump cachix/cachix-action in /.github/actions/setup-nix ( #3159 )
2024-01-15 14:54:44 -05:00
dependabot[bot] and GitHub
f864437055
Bump cachix/install-nix-action from 24 to 25 ( #737 )
2024-01-15 14:38:23 -05: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
dependabot[bot] and GitHub
92573215b9
Bump cachix/install-nix-action from 23 to 24 ( #714 )
2023-12-04 16:31:07 -05:00
dependabot[bot] and GitHub
6277eb43f7
build(deps): bump cachix/cachix-action in /.github/actions/setup-nix ( #3085 )
2023-12-04 15:39:40 -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
2c35257eec
chore: add prefix info to the PR template
2023-11-03 19:42:06 -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
50c87fec88
Bump actions/checkout from 3 to 4 ( #678 )
2023-09-11 18:33:29 -03:00
dependabot[bot] and GitHub
3f5e840baf
build(deps): bump cachix/install-nix-action ( #2935 )
2023-09-11 03:00:29 -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 Steve Chavez
46eae105b7
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 17:14:42 -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
5cdafb23e7
ci: fix ARM docker containers not stopping immediately
2023-07-06 11:20:32 -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