|
1 | 1 | freebsd_instance: |
2 | | - image_family: freebsd-14-2 |
| 2 | + image_family: freebsd-14-3 |
3 | 3 |
|
4 | 4 | task: |
5 | | - name: FreeBSD+ghc-9.6.6+cabal |
| 5 | + name: FreeBSD+ghc-9.10.3+cabal |
6 | 6 | env: |
7 | | - LC_ALL: C.UTF-8 |
8 | | - BUILD: cabal |
9 | | - GHCUP_VERSION: 0.1.40.0 |
10 | | - DOCSPEC_URL: https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20210111/cabal-docspec-0.0.0.20210111.xz |
11 | | - DOCSPEC_OPTIONS: "--timeout 60 --check-properties --property-variables xs" |
12 | | - # GHCUP_GHC_OPTIONS: ${{ matrix.ghcup_ghc_options }} |
13 | | - GHCVER: 9.6.6 |
14 | | - CABALVER: 3.10.1.0 |
15 | | - DISABLE_DOCS: n |
16 | | - ENABLE_DOCSPEC: n |
17 | | - DISABLE_TEST: n |
18 | | - DISABLE_BENCH: n |
19 | | - DISABLE_DIST_CHECKS: y |
20 | | - # SDIST_OPTIONS: ${{ matrix.sdist_options }} |
21 | | - DISABLE_SDIST_BUILD: y |
| 7 | + PACKCHECK_COMMAND: cabal |
22 | 8 |
|
23 | | - # Cabal options |
| 9 | + # ------------------------------------------------------------------------ |
| 10 | + # Common options |
| 11 | + # ------------------------------------------------------------------------ |
24 | 12 | CABAL_REINIT_CONFIG: y |
25 | | - # CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }} --flag limit-build-mem |
26 | | - # CABAL_BUILD_TARGETS: ${{ matrix.cabal_build_targets }} |
27 | | - CABAL_PROJECT: cabal.project |
28 | | - CABAL_CHECK_RELAX: y |
| 13 | + LC_ALL: C.UTF-8 |
| 14 | + |
| 15 | + # ------------------------------------------------------------------------ |
| 16 | + # What to build |
| 17 | + # ------------------------------------------------------------------------ |
| 18 | + # DISABLE_TEST: "y" |
| 19 | + # DISABLE_BENCH: "y" |
| 20 | + # DISABLE_DOCS: "y" |
| 21 | + DISABLE_SDIST_BUILD: "y" |
| 22 | + # DISABLE_SDIST_GIT_CHECK: "y" |
| 23 | + DISABLE_DIST_CHECKS: "y" |
| 24 | + |
| 25 | + # ------------------------------------------------------------------------ |
| 26 | + # Selecting tool versions |
| 27 | + # ------------------------------------------------------------------------ |
| 28 | + # For updating see: https://downloads.haskell.org/~ghcup/ |
| 29 | + GHCUP_VERSION: 0.1.50.2 |
| 30 | + GHCVER: 9.10.3 |
29 | 31 |
|
30 | | - # Stack options |
31 | | - # STACK_UPGRADE: "y" |
32 | | - # RESOLVER: ${{ matrix.resolver }} |
33 | | - # STACK_YAML: ${{ matrix.stack_yaml }} |
34 | | - # STACK_BUILD_OPTIONS: ${{ matrix.stack_build_options }} |
| 32 | + # ------------------------------------------------------------------------ |
| 33 | + # stack options (if using stack builds) |
| 34 | + # ------------------------------------------------------------------------ |
| 35 | + # Note requiring a specific version of stack using STACKVER may fail due to |
| 36 | + # github API limit while checking and upgrading/downgrading to the specific |
| 37 | + # version. |
| 38 | + #STACKVER: "1.6.5" |
| 39 | + #STACK_UPGRADE: "y" |
| 40 | + #STACK_YAML: "stack.yaml" |
35 | 41 |
|
36 | | - # packcheck location and revision |
| 42 | + # ------------------------------------------------------------------------ |
| 43 | + # cabal options |
| 44 | + # ------------------------------------------------------------------------ |
| 45 | + CABAL_CHECK_RELAX: y |
| 46 | + CABAL_PROJECT: cabal.project |
| 47 | + |
| 48 | + # ------------------------------------------------------------------------ |
| 49 | + # Location of packcheck.sh (the shell script invoked to perform CI tests ). |
| 50 | + # ------------------------------------------------------------------------ |
| 51 | + # You can either commit the packcheck.sh script at this path in your repo or |
| 52 | + # you can use it by specifying the PACKCHECK_REPO_URL option below in which |
| 53 | + # case it will be automatically copied from the packcheck repo to this path |
| 54 | + # during CI tests. In any case it is finally invoked from this path. |
37 | 55 | PACKCHECK: "./packcheck.sh" |
| 56 | + # If you have not committed packcheck.sh in your repo at PACKCHECK |
| 57 | + # then it is automatically pulled from this URL. |
38 | 58 | PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/composewell/packcheck" |
39 | | - PACKCHECK_GITHUB_COMMIT: "v0.7.1" |
| 59 | + PACKCHECK_GITHUB_COMMIT: "dd6862df527f317fd4987afa523fba3f4fde7e19" |
| 60 | + |
| 61 | + ghcup_cache: |
| 62 | + folder: ~/.ghcup |
| 63 | + fingerprint_script: echo $GHCUP_VERSION $GHCVER |
| 64 | + |
| 65 | + cabal_packages_cache: |
| 66 | + folder: ~/.cabal/packages |
| 67 | + fingerprint_script: echo $GHCVER |
40 | 68 |
|
41 | | - # Pull token from "secrets" setting of the github repo |
42 | | - # COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} |
43 | | - # COVERAGE: ${{ matrix.coverage }} |
| 69 | + cabal_cache: |
| 70 | + folder: ~/.cabal/store |
| 71 | + fingerprint_script: echo $GHCVER |
44 | 72 |
|
45 | | - # hlint |
46 | | - # HLINT_VERSION: 3.6.1 |
47 | | - # HLINT_OPTIONS: "lint" |
48 | | - # HLINT_TARGETS: "core/src src test benchmark" |
| 73 | + #local_cache: |
| 74 | + # folder: ~/.local |
| 75 | + # fingerprint_script: echo $GHCVER |
49 | 76 |
|
50 | | - # Subdir |
51 | | - # SUBDIR: ${{ matrix.subdir }} |
| 77 | + #local_bin_cache: |
| 78 | + # folder: ~/.local/bin |
| 79 | + # fingerprint_script: echo $HLINT_VERSION |
52 | 80 |
|
53 | 81 | deps_install_script: | |
54 | 82 | pkg install -y gmake |
|
70 | 98 | fi |
71 | 99 |
|
72 | 100 | packcheck_run_script: | |
73 | | - export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin |
74 | | - bash -c "$PACKCHECK $BUILD" |
| 101 | + # Commands like mount, sysctl for info require sbin |
| 102 | + PTH=/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin |
| 103 | + # Use "bash -c" instead of invoking directly to preserve quoted |
| 104 | + # arguments in PACKCHECK_COMMAND e.g. DOCSPEC_OPTIONS="--timeout 60". |
| 105 | + # Direct invocation would word-split on spaces inside quoted values. |
| 106 | + bash -c "$PACKCHECK $PACKCHECK_COMMAND PATH=$PTH" |
0 commit comments