-
-
Notifications
You must be signed in to change notification settings - Fork 2
185 lines (143 loc) · 5.22 KB
/
pier.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
name: pier
on:
push:
branches: [main, ci-pier]
pull_request:
branches: [main]
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal:
- "3.2"
ghc:
- "8.2.2"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: haskell/actions/setup@v1
name: setup GHC and cabal-install
with:
enable-stack: true
stack-version: 'latest'
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
# SEE: https://github.com/actions/cache/blob/master/examples.md#haskell---cabal
- uses: actions/cache@v1
name: cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- uses: actions/cache@v1
name: cache .stack-work
with:
path: .stack-work
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-work
- uses: actions/cache@v1
name: cache ~/.pier/artifact
with:
path: ~/.pier/artifact
key: ${{ runner.os }}-${{ matrix.ghc }}-shared-pier-artifact
- uses: actions/cache@v1
name: cache _pier/artifact
with:
path: _pier/artifact
key: ${{ runner.os }}-${{ matrix.ghc }}-pier-artifact
- uses: actions/cache@v1
name: cache-pier-exe
with:
path: ~/.local/bin/pier
key: ${{ runner.os }}-${{ matrix.ghc }}-pier-exe
- name: install pier
if: steps.cache-pier-exe.outputs.cache-hit != 'true'
run: stack install pier --stack-yaml=lang-haskell/stack-pier.yaml
#- name: flight-clip
#run: ~/.local/bin/pier test flight-clip
#- name: flight-cmd
#run: ~/.local/bin/pier test flight-cmd
#- name: flight-comp
#run: ~/.local/bin/pier test flight-comp:test:comp
#- name: detour-via-sci
#run: ~/.local/bin/pier test detour-via-sci
#- name: detour-via-uom
#run: ~/.local/bin/pier test detour-via-uom
# Build instead of test flight-earth.
# Error when running Shake build system:
# * Test suites from flight-earth
# * Library doctest
# * Library ghc-paths
# * Command: ghc-paths-0.1.0.9: building library
# _pier/artifact/aSAglvFGrs2_ie9NyRDZNIwAaImwZ2zi7zD1npAcXTI/package/raw/ghc-paths-0.1.0.9/GHC/Paths.hs:9:11: error:
# Data constructor not in scope: GHC_PATHS_LIBDIR :: FilePath
# |
# 9 | libdir = GHC_PATHS_LIBDIR
# | ^^^^^^^^^^^^^^^^
# _pier/artifact/aSAglvFGrs2_ie9NyRDZNIwAaImwZ2zi7zD1npAcXTI/package/raw/ghc-paths-0.1.0.9/GHC/Paths.hs:10:11: error:
# Data constructor not in scope: GHC_PATHS_DOCDIR :: FilePath
# |
# 10 | docdir = GHC_PATHS_DOCDIR
# | ^^^^^^^^^^^^^^^^
# _pier/artifact/aSAglvFGrs2_ie9NyRDZNIwAaImwZ2zi7zD1npAcXTI/package/raw/ghc-paths-0.1.0.9/GHC/Paths.hs:12:11: error:
# Data constructor not in scope: GHC_PATHS_GHC :: FilePath
# |
# 12 | ghc = GHC_PATHS_GHC
# | ^^^^^^^^^^^^^
# _pier/artifact/aSAglvFGrs2_ie9NyRDZNIwAaImwZ2zi7zD1npAcXTI/package/raw/ghc-paths-0.1.0.9/GHC/Paths.hs:13:11: error:
# Data constructor not in scope: GHC_PATHS_GHC_PKG :: FilePath
# |
# 13 | ghc_pkg = GHC_PATHS_GHC_PKG
# | ^^^^^^^^^^^^^^^^^
- name: flight-earth
run: ~/.local/bin/pier build flight-earth
#- name: flight-fsdb
#run: ~/.local/bin/pier test flight-fsdb
#- name: flight-gap-allot
#run: ~/.local/bin/pier test flight-gap-allot
- name: flight-gap-effort
run: ~/.local/bin/pier test flight-gap-effort:test:effort
- name: flight-gap-lead
run: ~/.local/bin/pier test flight-gap-lead:test:lead
- name: flight-gap-math
run: ~/.local/bin/pier test flight-gap-math:test:math
- name: flight-gap-stop
run: ~/.local/bin/pier test flight-gap-stop:test:stop
- name: flight-gap-valid
run: ~/.local/bin/pier test flight-gap-valid:test:valid
- name: flight-gap-weight
run: ~/.local/bin/pier test flight-gap-weight:test:weight
#- name: flight-igc
#run: ~/.local/bin/pier test flight-igc
- name: flight-kml
run: ~/.local/bin/pier test flight-kml:test:parse
#- name: flight-latlng
#run: ~/.local/bin/pier test flight-latlng
#- name: flight-lookup
#run: ~/.local/bin/pier test flight-lookup
#- name: flight-mask
#run: ~/.local/bin/pier test flight-mask
#- name: flight-route
#run: ~/.local/bin/pier test flight-route
#- name: flight-scribe
#run: ~/.local/bin/pier test flight-scribe
- name: siggy-chardust
run: ~/.local/bin/pier test siggy-chardust:test:digits
#- name: flight-span
#run: ~/.local/bin/pier test flight-span
#- name: flight-task
#run: ~/.local/bin/pier test flight-task:test:task
#- name: flight-time
#run: ~/.local/bin/pier test flight-time
#- name: flight-track
#run: ~/.local/bin/pier test flight-track
#- name: flight-units
# run: ~/.local/bin/pier test flight-units
# NOTE: Test using tasty-discover fails.
# Error when running Shake build system:
# * TestSuite serial from flight-zone
# * Command: flight-zone-0.1.0: building test-suite serial
# ghc: could not execute: tasty-discover
#- name: flight-zone
#run: ~/.local/bin/pier test flight-zone:test:serial