You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If we had an exact cache hit, the dependencies will be up to date.
181
-
if: steps.cache.outputs.cache-hit != 'true'
182
-
run: cabal build all --only-dependencies
183
-
184
-
# Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
185
-
- name: Save cached dependencies
186
-
uses: actions/cache/save@v4
187
-
# If we had an exact cache hit, trying to save the cache would error because of key clash.
188
-
if: steps.cache.outputs.cache-hit != 'true'
189
-
with:
190
-
path: ${{ steps.setup.outputs.cabal-store }}
191
-
key: ${{ steps.cache.outputs.cache-primary-key }}
192
-
193
-
- name: Build
194
-
run: cabal build all
195
-
196
-
- name: Run tests
197
-
run: cabal test all
198
-
199
-
- name: Check cabal file
200
-
run: cabal check
201
-
202
-
- name: Build documentation
203
-
run:
204
-
cabal haddock all --disable-documentation
205
-
# --disable-documentation disables building documentation for dependencies.
206
-
# The package's own documentation is still built,
207
-
# yet contains no links to the documentation of the dependencies.
208
-
```
209
-
210
-
Alternatively, the two occurrences of `--disable-documentation` can be changed to `--enable-documentation`, for resolving the external references to the documentation of the dependencies.
211
-
This will increase build times a bit, though.
20
+
See [action.yml](action.yml) and [docs/examples.md](docs/examples.md).
# If we had an exact cache hit, the dependencies will be up to date.
160
+
if: steps.cache.outputs.cache-hit != 'true'
161
+
run: cabal build all --only-dependencies
162
+
163
+
# Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
164
+
- name: Save cached dependencies
165
+
uses: actions/cache/save@v4
166
+
# If we had an exact cache hit, trying to save the cache would error because of key clash.
167
+
if: steps.cache.outputs.cache-hit != 'true'
168
+
with:
169
+
path: ${{ steps.setup.outputs.cabal-store }}
170
+
key: ${{ steps.cache.outputs.cache-primary-key }}
171
+
172
+
- name: Build
173
+
run: cabal build all
174
+
175
+
- name: Run tests
176
+
run: cabal test all
177
+
178
+
- name: Check cabal file
179
+
run: cabal check
180
+
181
+
- name: Build documentation
182
+
run:
183
+
cabal haddock all --disable-documentation
184
+
# --disable-documentation disables building documentation for dependencies.
185
+
# The package's own documentation is still built,
186
+
# yet contains no links to the documentation of the dependencies.
187
+
```
188
+
189
+
Alternatively, the two occurrences of `--disable-documentation` can be changed to `--enable-documentation`, for resolving the external references to the documentation of the dependencies.
0 commit comments