forked from PostgREST/postgrest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
36 lines (31 loc) · 882 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
freebsd_instance:
image_family: freebsd-14-0
build_task:
name: Build FreeBSD (Stack)
install_script: pkg install -y postgresql16-client hs-stack git
# This also includes nix and cabal related files, because the
# Github Actions build workflow will run on those and the
# "Fetch from FreeBSD" job should not fail.
only_if: |
changesInclude(
'.github/workflows/build.yaml',
'.github/actions/setup-nix/**',
'.github/scripts/**',
'.github/*',
'*.nix',
'nix/**',
'.cirrus.yml',
'cabal.project*',
'postgrest.cabal',
'stack.yaml*',
'**.hs'
)
stack_cache:
folders: /.stack
fingerprint_script: cat postgrest.cabal stack.yaml.lock
reupload_on_changes: false
build_script: |
stack build -j 1 --local-bin-path . --copy-bins
strip postgrest
bin_artifacts:
path: postgrest