-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
127 lines (125 loc) · 3.94 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
linux_test_task:
container:
image: ghcr.io/flipstone/haskell-tools:debian-stable-ghc-9.6.6-2024-10-23-eb5da39
cpu: 6
memory: 6G
linux_stack_cache:
folder: ~/.stack
fingerprint_script:
- cat stack.yaml.lock henforcer.cabal
populate_script:
- apt update
- apt install bmake
- export PATH=$PATH:/root/.local/bin:/root/.ghcup/bin
- bmake setup-stack
linux_ghcup_cache:
folder: /usr/local/.ghcup
fingerprint_script:
- cat Makefile
populate_script:
- apt update
- apt install bmake
- export PATH=$PATH:/root/.local/bin:/root/.ghcup/bin
- bmake setup-ghc
linux_cabal_cache:
folder: ~/.local/state/cabal
fingerprint_script:
- cat Makefile henforcer.cabal
populate_script:
- apt update
- apt install bmake
- export PATH=$PATH:/root/.local/bin:/root/.ghcup/bin
- bmake setup-cabal
install_script:
- apt update
- apt install bmake
- export PATH=$PATH:/root/.local/bin:/root/.ghcup/bin
- bmake setup
test_script:
- export PATH=$PATH:/root/.local/bin:/root/.ghcup/bin
- bmake ci
upload_caches:
- linux_stack
- linux_ghcup
- linux_cabal
freebsd_test_task:
freebsd_instance:
image_family: freebsd-14-1
cpu: 6
memory: 6G
freebsd_stack_cache:
folder: ~/.stack
fingerprint_script:
- cat stack.yaml.lock henforcer.cabal
freebsd_cabal_cache:
folder: ~/.local/state/cabal
fingerprint_script:
- cat Makefile henforcer.cabal
freebsd_ghcup_cache:
folder: /usr/local//.ghcup
fingerprint_script:
- cat Makefile
populate_script:
- pkg install -y hs-stack hs-cabal-install curl
- curl -o /usr/local/bin/ghcup https://downloads.haskell.org/\~ghcup/0.1.30.0/x86_64-portbld-freebsd-ghcup-0.1.30.0
- chmod +x /usr/local/bin/ghcup
- export PATH=$PATH:/.local/bin:/.ghcup/bin
- export GHC_VERSIONS=9.4.8
- export STACK_YAMLS=
- make setup-cabal
upload_caches:
- freebsd_ghcup
install_script:
- pkg install -y hs-stack hs-cabal-install curl
- curl -o /usr/local/bin/ghcup https://downloads.haskell.org/\~ghcup/0.1.30.0/x86_64-portbld-freebsd-ghcup-0.1.30.0
- chmod +x /usr/local/bin/ghcup
- export PATH=$PATH:/.local/bin:/.ghcup/bin
- export GHC_VERSIONS=9.4.8
- export STACK_YAMLS=
- make setup-cabal
test_script:
- export PATH=$PATH:/.local/bin:/.ghcup/bin
- export GHC_VERSIONS=9.4.8
- export STACK_YAMLS=
# no reason to test everything, like formatting, on every platform
- make test-cabal
upload_caches:
- freebsd_cabal
macos_test_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
cpu: 6
memory: 6G
macos_stack_cache:
folder: ~/.stack
fingerprint_script:
- cat stack.yaml.lock henforcer.cabal
macos_cabal_cache:
folder: ~/.local/state/cabal
fingerprint_script:
- cat Makefile henforcer.cabal
macos_ghcup_cache:
folder: /usr/local/.ghcup
fingerprint_script:
- cat Makefile
populate_script:
- brew install haskell-stack cabal-install bmake
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
- source /Users/admin/.ghcup/env
- GHC_VERSIONS=9.4.8 STACK_YAMLS=stack.yaml bmake setup-ghc setup-cabal setup-stack
upload_caches:
- macos_ghcup
install_script:
- brew install haskell-stack cabal-install bmake
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
- source /Users/admin/.ghcup/env
- export PATH=$PATH:/Users/admin/.local/bin
- GHC_VERSIONS=9.4.8 STACK_YAMLS=stack.yaml bmake setup-ghc setup-cabal setup-stack
test_script:
- source /Users/admin/.ghcup/env
- export PATH=$PATH:/Users/admin/.local/bin
# no reason to test everything, like formatting, on every platform
- GHC_VERSIONS=9.4.8 STACK_YAMLS=stack.yaml bmake test-cabal test-stack
upload_caches:
- macos_stack
- macos_cabal